summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-bus
diff options
context:
space:
mode:
authorJan Janssen <medhefgo@web.de>2022-08-30 09:52:03 +0200
committerJan Janssen <medhefgo@web.de>2022-08-30 12:03:33 +0200
commitf996072fe05358ac24460dff1dc12dd804bf210d (patch)
tree4f459f4caaec458b8b2007c4f487571977a8cb07 /src/libsystemd/sd-bus
parent5570a09702b2a4c77772617d5fce97b6b70ec03f (diff)
downloadsystemd-f996072fe05358ac24460dff1dc12dd804bf210d.tar.gz
tree-wide: Fix field width specifier warnings
The casting here isn't pretty, but at least it makes it obvious what is happening instead of implicit and it allows enabling -Wformat-signedness.
Diffstat (limited to 'src/libsystemd/sd-bus')
-rw-r--r--src/libsystemd/sd-bus/bus-match.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-bus/bus-match.c b/src/libsystemd/sd-bus/bus-match.c
index d4da60717e..157c660fe9 100644
--- a/src/libsystemd/sd-bus/bus-match.c
+++ b/src/libsystemd/sd-bus/bus-match.c
@@ -1013,7 +1013,7 @@ void bus_match_dump(FILE *out, struct bus_match_node *node, unsigned level) {
if (!node)
return;
- fprintf(out, "%*s[%s]", 2 * level, "", bus_match_node_type_to_string(node->type, buf, sizeof(buf)));
+ fprintf(out, "%*s[%s]", 2 * (int) level, "", bus_match_node_type_to_string(node->type, buf, sizeof(buf)));
if (node->type == BUS_MATCH_VALUE) {
if (node->parent->type == BUS_MATCH_MESSAGE_TYPE)