]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
id128: drop "MESSAGE_" prefix of pretty output 14046/head
authorLennart Poettering <lennart@poettering.net>
Fri, 15 Nov 2019 18:04:21 +0000 (19:04 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 15 Nov 2019 18:07:05 +0000 (19:07 +0100)
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.

src/shared/id128-print.c

index 27a4e8557371ea8f02490c46b39ac2b7593f10e4..356f41050786ce67558db18e618039287f50f8d4 100644 (file)
@@ -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);