Commit 5b89e2a8 authored by Simon McVittie's avatar Simon McVittie

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
parent 1f716452
......@@ -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, ...)
{
......
......@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment