log: introduce a macro to format message id
The MESSAGE_ID=... stanza will appear in countless number of places. It is just too long to write it out in full each time. Incidentally, this also fixes a typo of MESSSAGE is three places.
This commit is contained in:
+1
-1
@@ -1023,7 +1023,7 @@ static void unit_status_log_starting_stopping_reloading(Unit *u, JobType t) {
|
||||
SD_MESSAGE_UNIT_RELOADING;
|
||||
|
||||
log_struct(LOG_INFO,
|
||||
"MESSAGE_ID=" SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL(mid),
|
||||
MESSAGE_ID(mid),
|
||||
"UNIT=%s", u->id,
|
||||
"MESSAGE=%s", buf,
|
||||
NULL);
|
||||
|
||||
Reference in New Issue
Block a user