X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Fhostname-setup.c;h=74ff64883f51d5224c046cb0fdfc618c88a514f2;hb=0a1beeb64207eaa88ab9236787b1cbc2f704ae14;hp=57baa7927504197d881a024ede7304cfad18ad3a;hpb=b4d23205f238e06aaa31264628e20669e714acad;p=elogind.git diff --git a/src/core/hostname-setup.c b/src/core/hostname-setup.c index 57baa7927..74ff64883 100644 --- a/src/core/hostname-setup.c +++ b/src/core/hostname-setup.c @@ -64,7 +64,7 @@ int hostname_setup(void) { if (r == -ENOENT) enoent = true; else - log_warning("Failed to read configured hostname: %s", strerror(-r)); + log_warning_errno(-r, "Failed to read configured hostname: %m"); hn = NULL; } else