summaryrefslogtreecommitdiff
path: root/src/core/dbus-scope.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-11-03 13:16:42 -0400
committerGitHub <noreply@github.com>2016-11-03 13:16:42 -0400
commita1e2ef7ec912902d8142e7cb5830cbfb47dba86c (patch)
tree9ba19deb6acaab9794edb3d19b235375bfdb3e60 /src/core/dbus-scope.h
parentc14eff367ca39b16830f76cdc90dcb70de174667 (diff)
Revert "sd-bus: use PRIu64 instead of casting" (#4556)systemd/v232
This reverts commit 75ead2b753cb9586f3f208326446081baab70da1. Follow up for #4546: > @@ -848,8 +848,7 @@ static int bus_kernel_make_message(sd_bus *bus, struct kdbus_msg *k) { if (k->src_id == KDBUS_SRC_ID_KERNEL) bus_message_set_sender_driver(bus, m); else { - xsprintf(m->sender_buffer, ":1.%llu", - (unsigned long long)k->src_id); + xsprintf(m->sender_buffer, ":1.%"PRIu64, k->src_id); This produces: src/libsystemd/sd-bus/bus-kernel.c: In function ‘bus_kernel_make_message’: src/libsystemd/sd-bus/bus-kernel.c:851:44: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘__u64 {aka long long unsigned int}’ [-Wformat=] xsprintf(m->sender_buffer, ":1.%"PRIu64, k->src_id); ^
Diffstat (limited to 'src/core/dbus-scope.h')
0 files changed, 0 insertions, 0 deletions