diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2012-10-08 17:02:30 +0000 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2012-10-13 14:26:30 +0200 |
commit | 1ca6783f5ea3755bd83e723f529c2eda512c7fed (patch) | |
tree | 8c8976c5ffcd9bbaeab0d11836f0b68745f19c43 /src/systemd/sd-id128.h | |
parent | c0735bb2183493147c17a509ec8038bced5d35c9 (diff) | |
download | systemd-1ca6783f5ea3755bd83e723f529c2eda512c7fed.tar.gz |
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.
Diffstat (limited to 'src/systemd/sd-id128.h')
-rw-r--r-- | src/systemd/sd-id128.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/systemd/sd-id128.h b/src/systemd/sd-id128.h index 05521ae4bb..fa17be8434 100644 --- a/src/systemd/sd-id128.h +++ b/src/systemd/sd-id128.h @@ -65,6 +65,7 @@ static inline int sd_id128_equal(sd_id128_t a, sd_id128_t b) { } #define SD_ID128_NULL ((sd_id128_t) { .qwords = { 0, 0 }}) +#define MESSAGE_ID(x) "MESSAGE_ID=" SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL(x) #ifdef __cplusplus } |