summaryrefslogtreecommitdiff
path: root/src/sleep
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-01-22 12:35:08 -0500
committerSven Eden <yamakuzure@gmx.net>2017-07-17 17:58:36 +0200
commit9e1b62d61dece3df2f3c2963627e70be8a1d2ff7 (patch)
treef7ba636876cdcccb4638d182faa9aadab03ae9e0 /src/sleep
parentbced11a985de1016bfc33655cb30a2fbece8bc59 (diff)
basic/util: move execute_directory() to separate file
It's a fairly specialized function. Let's make new files for it and the tests.
Diffstat (limited to 'src/sleep')
-rw-r--r--src/sleep/sleep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sleep/sleep.c b/src/sleep/sleep.c
index 22f4db613..dc1d55d8b 100644
--- a/src/sleep/sleep.c
+++ b/src/sleep/sleep.c
@@ -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);