diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2010-08-19 23:23:52 +0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2010-08-19 23:24:42 +0300 |
commit | da446f5edd0c5e2b7d634fd9b833ad48e77a2dd5 (patch) | |
tree | 151473060976aea014c3c95e112c03306b03cc38 /serial/port.c | |
parent | 3a8efc07f52ea65b6ef2aaf4b7720c73cffa3cef (diff) | |
download | bluez-da446f5edd0c5e2b7d634fd9b833ad48e77a2dd5.tar.gz |
Fix format string warnings for g_dbus_create_error
This patch fixes gcc warnings for "format not a string literal and no
format arguments".
Diffstat (limited to 'serial/port.c')
-rw-r--r-- | serial/port.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/serial/port.c b/serial/port.c index 48a60b43..0398f2e3 100644 --- a/serial/port.c +++ b/serial/port.c @@ -240,20 +240,20 @@ static inline DBusMessage *does_not_exist(DBusMessage *msg, const char *description) { return g_dbus_create_error(msg, ERROR_INTERFACE ".DoesNotExist", - description); + "%s", description); } static inline DBusMessage *invalid_arguments(DBusMessage *msg, const char *description) { return g_dbus_create_error(msg, ERROR_INTERFACE ".InvalidArguments", - description); + "%s", description); } static inline DBusMessage *failed(DBusMessage *msg, const char *description) { return g_dbus_create_error(msg, ERROR_INTERFACE ".Failed", - description); + "%s", description); } static void open_notify(int fd, int err, struct serial_port *port) |