From: Zach Smith Date: Tue, 22 Oct 2019 04:36:27 +0000 (-0700) Subject: systemd-sleep: improve /proc/swaps open fail message X-Git-Tag: v244-rc1~156^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F13682%2Fhead;p=thirdparty%2Fsystemd.git systemd-sleep: improve /proc/swaps open fail message --- diff --git a/src/shared/sleep-config.c b/src/shared/sleep-config.c index 85110dffa22..b5bc6595bd6 100644 --- a/src/shared/sleep-config.c +++ b/src/shared/sleep-config.c @@ -316,7 +316,7 @@ int find_hibernate_location(HibernateLocation **ret_hibernate_location) { f = fopen("/proc/swaps", "re"); if (!f) { log_full(errno == ENOENT ? LOG_DEBUG : LOG_WARNING, - "Failed to retrieve open /proc/swaps: %m"); + "Failed to open /proc/swaps: %m"); return negative_errno(); }