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
This commit is contained in:
Simon McVittie 2015-02-02 17:29:43 +00:00
parent 1f716452e7
commit 5b89e2a839
2 changed files with 1 additions and 4 deletions

View file

@ -1324,9 +1324,6 @@ bus_context_get_initial_fd_limit (BusContext *context)
return context->initial_fd_limit;
}
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, ...)
{

View file

@ -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,