chiark / gitweb /
Use %m instead of strerror(errno) where appropiate
[elogind.git] / src / shared / label.c
index 70e5c85a11273833837b30fc7faea6fffa752d73..3b7b86e8fadcd30a10aa246dd11ab5056e270d2b 100644 (file)
@@ -79,7 +79,7 @@ static int smack_relabel_in_dev(const char *path) {
 
         r = setxattr(path, "security.SMACK64", label, strlen(label), 0);
         if (r < 0) {
-                log_error("Smack relabeling \"%s\" %s", path, strerror(errno));
+                log_error("Smack relabeling \"%s\" %m", path);
                 return -errno;
         }
 #endif