chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
log: introduce a macro to format message id
[elogind.git]
/
src
/
systemd
/
sd-id128.h
diff --git
a/src/systemd/sd-id128.h
b/src/systemd/sd-id128.h
index 05521ae4bbed646e1cf9a13a2051dce268545fb8..fa17be84347815de3e15079400b9f4ecaec1b184 100644
(file)
--- 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
}