summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-11-15 19:04:21 +0100
committerLennart Poettering <lennart@poettering.net>2019-11-15 19:07:05 +0100
commit394fda4cafd775de779f06bafdf96a2632ed7eed (patch)
tree5d4f99c2ff7fc3bc7bfaa81587754f0b655ddcbc
parenta19fdd66c2290dbb42e250e04fb0cb24dc749a83 (diff)
downloadsystemd-394fda4cafd775de779f06bafdf96a2632ed7eed.tar.gz
id128: drop "MESSAGE_" prefix of pretty output
Using these IDs for message identication is one use case, but there are others, hence let's drop the prefix, it only made sense to have while the tool was part of journalctl.
-rw-r--r--src/shared/id128-print.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/id128-print.c b/src/shared/id128-print.c
index 27a4e85573..356f410507 100644
--- a/src/shared/id128-print.c
+++ b/src/shared/id128-print.c
@@ -42,7 +42,7 @@ int id128_pretty_print(sd_id128_t id, Id128PrettyPrintMode mode) {
"As UUID:\n"
"%s" SD_ID128_UUID_FORMAT_STR "%s\n\n"
"As %s macro:\n"
- "%s#define MESSAGE_XYZ SD_ID128_MAKE(",
+ "%s#define XYZ SD_ID128_MAKE(",
on, SD_ID128_FORMAT_VAL(id), off,
on, SD_ID128_FORMAT_VAL(id), off,
man_link,
@@ -53,7 +53,7 @@ int id128_pretty_print(sd_id128_t id, Id128PrettyPrintMode mode) {
printf("As Python constant:\n"
">>> import %s\n"
- ">>> %sMESSAGE_XYZ = uuid.UUID('" SD_ID128_FORMAT_STR "')%s\n",
+ ">>> %sXYZ = uuid.UUID('" SD_ID128_FORMAT_STR "')%s\n",
mod_link,
on, SD_ID128_FORMAT_VAL(id), off);