]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-mountpoint-util: fix NULL arg to %s
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 7 Jun 2022 09:20:09 +0000 (11:20 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 9 Jun 2022 05:53:06 +0000 (07:53 +0200)
src/test/test-mountpoint-util.c

index 6f9e68f4d99297708ad3ec2c10070c52c2dca625..6daab022aa15cc7cf8b9afdc8deb562f4c8b3fed 100644 (file)
@@ -20,7 +20,7 @@
 static void test_mount_propagation_flags_one(const char *name, int ret, unsigned long expected) {
         unsigned long flags;
 
-        log_info("/* %s(%s) */", __func__, name);
+        log_info("/* %s(%s) */", __func__, strnull(name));
 
         assert_se(mount_propagation_flags_from_string(name, &flags) == ret);