summaryrefslogtreecommitdiff
path: root/bus
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2015-02-02 17:29:43 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2015-02-03 16:19:14 +0000
commit5b89e2a839b9d778cc9e4bdc156243f826e26b2b (patch)
tree7791f218fcaf8a79347f3b9ebc288478bfed9b3e /bus
parent1f716452e702159dc98af00fa7a0c6775ec8de40 (diff)
downloaddbus-5b89e2a839b9d778cc9e4bdc156243f826e26b2b.tar.gz
bus: put the printf attribute in the header where it will do more good
Now we can actually notice incorrect format strings in other translation units. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=88810 Reviewed-by: Philip Withnall
Diffstat (limited to 'bus')
-rw-r--r--bus/bus.c3
-rw-r--r--bus/bus.h2
2 files changed, 1 insertions, 4 deletions
diff --git a/bus/bus.c b/bus/bus.c
index f51ee991..84e6a1fe 100644
--- a/bus/bus.c
+++ b/bus/bus.c
@@ -1325,9 +1325,6 @@ bus_context_get_initial_fd_limit (BusContext *context)
}
void
-bus_context_log (BusContext *context, DBusSystemLogSeverity severity, const char *msg, ...) _DBUS_GNUC_PRINTF (3, 4);
-
-void
bus_context_log (BusContext *context, DBusSystemLogSeverity severity, const char *msg, ...)
{
va_list args;
diff --git a/bus/bus.h b/bus/bus.h
index dac6ea5e..d05c80f0 100644
--- a/bus/bus.h
+++ b/bus/bus.h
@@ -120,7 +120,7 @@ DBusRLimit * bus_context_get_initial_fd_limit (BusContext
void bus_context_log (BusContext *context,
DBusSystemLogSeverity severity,
const char *msg,
- ...);
+ ...) _DBUS_GNUC_PRINTF (3, 4);
dbus_bool_t bus_context_check_security_policy (BusContext *context,
BusTransaction *transaction,
DBusConnection *sender,