summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-02-10 07:49:17 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-02-10 14:43:10 +0100
commitb357fe57b2b35f62572f99515a0666954281b49f (patch)
tree2effedd9521334232c16102e6dfa1a828215c023 /src
parentMerge pull request #18470 from mrc0mmand/ci-clang-12 (diff)
downloadsystemd-b357fe57b2b35f62572f99515a0666954281b49f.tar.xz
systemd-b357fe57b2b35f62572f99515a0666954281b49f.zip
test-tables: fix warning about NULL used in printf
With the simplified asserts, newer gcc is able to (correctly) figure out that NULL was being passed.
Diffstat (limited to 'src')
-rw-r--r--src/shared/test-tables.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/test-tables.h b/src/shared/test-tables.h
index bb8177b649..120dc7f2e9 100644
--- a/src/shared/test-tables.h
+++ b/src/shared/test-tables.h
@@ -27,7 +27,7 @@ static inline void _test_table(const char *name,
}
if (boring < 1 || i == size)
- printf("%s: %d → %s → %d\n", name, i, val, rev);
+ printf("%s: %d → %s → %d\n", name, i, strnull(val), rev);
else if (boring == 1)
printf("%*s ...\n", (int) strlen(name), "");