summaryrefslogtreecommitdiff
path: root/gdbus
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-08-19 17:35:04 (GMT)
committerMarcel Holtmann <marcel@holtmann.org>2010-08-19 17:35:52 (GMT)
commit74ee1110ce2d9235c0c0c5f15177d696dc16205d (patch)
treeebe085568515a494ec4fa0bafb68c3cf3166d6a1 /gdbus
parent993c6362b6322612c479eb9a48306f14410ef541 (diff)
downloadconnman-74ee1110ce2d9235c0c0c5f15177d696dc16205d.zip
connman-74ee1110ce2d9235c0c0c5f15177d696dc16205d.tar.gz
connman-74ee1110ce2d9235c0c0c5f15177d696dc16205d.tar.bz2
Add printf format attribute for error creation helper
Diffstat (limited to 'gdbus')
-rw-r--r--gdbus/gdbus.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdbus/gdbus.h b/gdbus/gdbus.h
index 47e18cf..c3e7252 100644
--- a/gdbus/gdbus.h
+++ b/gdbus/gdbus.h
@@ -100,7 +100,8 @@ gboolean g_dbus_unregister_interface(DBusConnection *connection,
const char *path, const char *name);
DBusMessage *g_dbus_create_error(DBusMessage *message, const char *name,
- const char *format, ...);
+ const char *format, ...)
+ __attribute__((format(printf, 3, 4)));
DBusMessage *g_dbus_create_error_valist(DBusMessage *message, const char *name,
const char *format, va_list args);
DBusMessage *g_dbus_create_reply(DBusMessage *message, int type, ...);