summaryrefslogtreecommitdiffstats
path: root/src/test/test-fstab-util.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-06-07 15:25:43 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-06-09 13:25:17 +0200
commitd10cee5e9029a14f75eb8d1f63bdf2a97adee2a5 (patch)
tree62f9909a15aaea3394e1d16c3bbd9c88aef704ec /src/test/test-fstab-util.c
parentvarious: indentation (diff)
downloadsystemd-d10cee5e9029a14f75eb8d1f63bdf2a97adee2a5.tar.xz
systemd-d10cee5e9029a14f75eb8d1f63bdf2a97adee2a5.zip
test-fstab-util: one more "NULL in printf %s"
Diffstat (limited to 'src/test/test-fstab-util.c')
-rw-r--r--src/test/test-fstab-util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/test-fstab-util.c b/src/test/test-fstab-util.c
index 2ce4e18643..89365b0bc5 100644
--- a/src/test/test-fstab-util.c
+++ b/src/test/test-fstab-util.c
@@ -37,7 +37,7 @@ static void do_fstab_filter_options(const char *opts,
r = fstab_filter_options(opts, remove, &name, &value, NULL, &filtered);
log_info("1: \"%s\" → %d, \"%s\", \"%s\", \"%s\", expected %d, \"%s\", \"%s\", \"%s\"",
opts, r, strnull(name), value, filtered,
- r_expected, name_expected, value_expected, filtered_expected ?: opts);
+ r_expected, strnull(name_expected), strnull(value_expected), filtered_expected ?: opts);
assert_se(r == r_expected);
assert_se(streq_ptr(name, name_expected));
assert_se(streq_ptr(value, value_expected));
@@ -49,7 +49,7 @@ static void do_fstab_filter_options(const char *opts,
assert_se(joined = strv_join(values, ":"));
log_info("2: \"%s\" → %d, \"%s\", \"%s\", expected %d, \"%s\", \"%s\"",
opts, r, strnull(name), joined,
- r_values_expected, name_expected, values_expected);
+ r_values_expected, strnull(name_expected), strnull(values_expected));
assert_se(r == r_values_expected);
assert_se(streq_ptr(name, r_values_expected > 0 ? name_expected : NULL));
assert_se(streq_ptr(joined, values_expected));
@@ -58,7 +58,7 @@ static void do_fstab_filter_options(const char *opts,
r = fstab_filter_options(opts, remove, &name, NULL, NULL, NULL);
log_info("3: \"%s\" → %d, \"%s\", expected %d, \"%s\"\n-",
opts, r, strnull(name),
- r_expected, name_expected);
+ r_expected, strnull(name_expected));
assert_se(r == r_expected);
assert_se(streq_ptr(name, name_expected));
}