diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-09-14 18:49:29 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-09-14 18:50:59 +0200 |
commit | 72a4d9f96cbeded61571f3bfddd2010e2dfe8076 (patch) | |
tree | 8ffcc901b06938b3ca066ea2537f3f36e61c4f1c /src/shared/bus-util.h | |
parent | socket-util: attempt SO_RCVBUFFORCE/SO_SNDBUFFORCE only if SO_RCVBUF/SO_SNDBU... (diff) | |
download | systemd-72a4d9f96cbeded61571f3bfddd2010e2dfe8076.tar.xz systemd-72a4d9f96cbeded61571f3bfddd2010e2dfe8076.zip |
bus-util: use _printf_ attribute
Follow-up for eda193578effbc3cee0f6d56ade52434778737c9.
Fixes oss-fuzz#10350.
Diffstat (limited to '')
-rw-r--r-- | src/shared/bus-util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/bus-util.h b/src/shared/bus-util.h index 1b58744d8e..80f4606ba4 100644 --- a/src/shared/bus-util.h +++ b/src/shared/bus-util.h @@ -65,7 +65,7 @@ int bus_connect_transport_systemd(BusTransport transport, const char *host, bool typedef int (*bus_message_print_t) (const char *name, const char *expected_value, sd_bus_message *m, bool value, bool all); -int bus_print_property_value(const char *name, const char *expected_value, bool only_value, const char *fmt, ...); +int bus_print_property_value(const char *name, const char *expected_value, bool only_value, const char *fmt, ...) _printf_(4,5); int bus_message_print_all_properties(sd_bus_message *m, bus_message_print_t func, char **filter, bool value, bool all, Set **found_properties); int bus_print_all_properties(sd_bus *bus, const char *dest, const char *path, bus_message_print_t func, char **filter, bool value, bool all, Set **found_properties); |