]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journalctl: add reference to sd-id128(3) to output (#5382)
authorLucas Werkmeister <mail@lucaswerkmeister.de>
Sat, 18 Feb 2017 21:36:25 +0000 (22:36 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 18 Feb 2017 21:36:25 +0000 (16:36 -0500)
SD_ID128_MAKE is clearly not a standard C macro, so let’s point the user
to its documentation to let them know which header they need and what
they can then do with MESSAGE_XYZ.

src/journal/journalctl.c

index 9ad6f115a19b0598f1383b143cde0f6e09ca2c79..22133c51eb7ebc97618bd1a85b1465e0fb6f14f5 100644 (file)
@@ -912,7 +912,7 @@ static int generate_new_id128(void) {
                SD_ID128_FORMAT_STR "\n\n"
                "As UUID:\n"
                "%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x\n\n"
-               "As macro:\n"
+               "As sd-id128(3) macro:\n"
                "#define MESSAGE_XYZ SD_ID128_MAKE(",
                SD_ID128_FORMAT_VAL(id),
                SD_ID128_FORMAT_VAL(id));