summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-05-05 17:55:33 -0700
committerMarcel Holtmann <marcel@holtmann.org>2009-05-05 17:55:33 -0700
commitd924889a050c1a325b0edc118e8ad6e910f7d60a (patch)
tree245c3b1135954ed78b024501e3b7cff6fd49f954
parent864cd602c0b400a2368f14b22bb9c224fd67b176 (diff)
downloadconnman-d924889a050c1a325b0edc118e8ad6e910f7d60a.tar.gz
connman-d924889a050c1a325b0edc118e8ad6e910f7d60a.tar.bz2
connman-d924889a050c1a325b0edc118e8ad6e910f7d60a.zip
Fix format string warnings
-rw-r--r--plugins/ethernet.c2
-rw-r--r--plugins/modem.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/ethernet.c b/plugins/ethernet.c
index 79ddf2b3..e6d45ff4 100644
--- a/plugins/ethernet.c
+++ b/plugins/ethernet.c
@@ -51,7 +51,7 @@ static void ethernet_newlink(unsigned flags, unsigned change, void *user_data)
struct connman_device *device = user_data;
struct ethernet_data *ethernet = connman_device_get_data(device);
- DBG("index %d flags %ld change %ld", ethernet->index, flags, change);
+ DBG("index %d flags %d change %d", ethernet->index, flags, change);
if ((ethernet->flags & IFF_UP) != (flags & IFF_UP)) {
if (flags & IFF_UP) {
diff --git a/plugins/modem.c b/plugins/modem.c
index 17036466..4c8a3e3d 100644
--- a/plugins/modem.c
+++ b/plugins/modem.c
@@ -141,7 +141,7 @@ static gboolean modem_event(GIOChannel *channel,
return FALSE;
}
- DBG("Read %d bytes (offset %d)", len, modem->offset);
+ DBG("Read %zu bytes (offset %d)", len, modem->offset);
if (g_str_has_suffix(modem->buf, "\r\n") == TRUE) {
for (list = modem->callbacks; list; list = list->next) {