]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/shared/logs-show.c
Add hasprefix macro to check prefixes of fixed length
[thirdparty/systemd.git] / src / shared / logs-show.c
index 40efad3273d3b94688abf2c98806265cd6c87c2a..89f67f52c044643e799c9d9ea7ca4b898c703b44 100644 (file)
@@ -438,7 +438,7 @@ static int output_export(
                 /* We already printed the boot id, from the data in
                  * the header, hence let's suppress it here */
                 if (length >= 9 &&
-                    memcmp(data, "_BOOT_ID=", 9) == 0)
+                    hasprefix(data, "_BOOT_ID="))
                         continue;
 
                 if (!utf8_is_printable(data, length)) {