summaryrefslogtreecommitdiff
path: root/src/journal
diff options
context:
space:
mode:
authorCristian Rodríguez <crrodriguez@opensuse.org>2014-05-24 00:10:36 -0400
committerLennart Poettering <lennart@poettering.net>2014-05-25 11:18:28 +0800
commit590b6b9188e75ba46c42995984a1c2fa06adb6d6 (patch)
tree4d8b40bf0d4a8502940e21d5347133bdf231b309 /src/journal
parent552c693eea399e8e32ffb8c9302aaffeb520427d (diff)
Use %m instead of strerror(errno) where appropiate
Diffstat (limited to 'src/journal')
-rw-r--r--src/journal/sd-journal.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/journal/sd-journal.c b/src/journal/sd-journal.c
index 11de8ef45e..ca805f83fe 100644
--- a/src/journal/sd-journal.c
+++ b/src/journal/sd-journal.c
@@ -1455,8 +1455,7 @@ static int add_directory(sd_journal *j, const char *prefix, const char *dirname)
de = readdir(d);
if (!de && errno != 0) {
r = -errno;
- log_debug("Failed to read directory %s: %s",
- m->path, strerror(errno));
+ log_debug("Failed to read directory %s: %m", m->path);
return r;
}
if (!de)
@@ -1546,8 +1545,7 @@ static int add_root_directory(sd_journal *j, const char *p) {
de = readdir(d);
if (!de && errno != 0) {
r = -errno;
- log_debug("Failed to read directory %s: %s",
- m->path, strerror(errno));
+ log_debug("Failed to read directory %s: %m", m->path);
return r;
}
if (!de)