chiark / gitweb /
basic/util: move execute_directory() to separate file
[elogind.git] / src / sleep / sleep.c
index 22f4db613f576d3367ef7037bedf41a349a9b3c7..dc1d55d8b08c1b131c8f406c25f439ca8f9c3943 100644 (file)
@@ -112,7 +112,7 @@ static int execute(char **modes, char **states) {
         execute_directories(dirs, DEFAULT_TIMEOUT_USEC, arguments);
 
         log_struct(LOG_INFO,
-                   "MESSAGE_ID=" SD_MESSAGE_SLEEP_START_STR,
+                   LOG_MESSAGE_ID(SD_MESSAGE_SLEEP_START),
                    LOG_MESSAGE("Suspending system..."),
                    "SLEEP=%s", arg_verb,
                    NULL);
@@ -122,7 +122,7 @@ static int execute(char **modes, char **states) {
                 return r;
 
         log_struct(LOG_INFO,
-                   "MESSAGE_ID=" SD_MESSAGE_SLEEP_STOP_STR,
+                   LOG_MESSAGE_ID(SD_MESSAGE_SLEEP_STOP),
                    LOG_MESSAGE("System resumed."),
                    "SLEEP=%s", arg_verb,
                    NULL);