summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-05-08 14:42:11 -0700
committerMarcel Holtmann <marcel@holtmann.org>2009-05-08 14:42:11 -0700
commitcdc85a525a549d069d68747acc61bb1baaa041f7 (patch)
tree8ac6b1465d6f4e56d4b4de71220a19fd52258db5
parent5ba06ab2d7cccb0743fb077e8e2714d5ca404533 (diff)
downloadconnman-cdc85a525a549d069d68747acc61bb1baaa041f7.tar.gz
connman-cdc85a525a549d069d68747acc61bb1baaa041f7.tar.bz2
connman-cdc85a525a549d069d68747acc61bb1baaa041f7.zip
Fix some more wrong format identifiers
-rw-r--r--src/rtnl.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/rtnl.c b/src/rtnl.c
index 3ea7608c..f46be359 100644
--- a/src/rtnl.c
+++ b/src/rtnl.c
@@ -249,30 +249,30 @@ static inline void print_inet(struct rtattr *attr, const char *name, int family)
if (family == AF_INET) {
struct in_addr addr;
addr = *((struct in_addr *) RTA_DATA(attr));
- DBG(" attr %s (len %jd) %s\n",
+ DBG(" attr %s (len %d) %s\n",
name, RTA_PAYLOAD(attr), inet_ntoa(addr));
} else
- DBG(" attr %s (len %jd)\n", name, RTA_PAYLOAD(attr));
+ DBG(" attr %s (len %d)\n", name, RTA_PAYLOAD(attr));
}
static inline void print_char(struct rtattr *attr, const char *name)
{
- DBG(" attr %s (len %jd) %s\n", name, RTA_PAYLOAD(attr),
+ DBG(" attr %s (len %d) %s\n", name, RTA_PAYLOAD(attr),
(char *) RTA_DATA(attr));
}
static inline void print_byte(struct rtattr *attr, const char *name)
{
- DBG(" attr %s (len %jd) 0x%02x\n", name, RTA_PAYLOAD(attr),
+ DBG(" attr %s (len %d) 0x%02x\n", name, RTA_PAYLOAD(attr),
*((unsigned char *) RTA_DATA(attr)));
}
static inline void print_attr(struct rtattr *attr, const char *name)
{
if (name)
- DBG(" attr %s (len %jd)\n", name, RTA_PAYLOAD(attr));
+ DBG(" attr %s (len %d)\n", name, RTA_PAYLOAD(attr));
else
- DBG(" attr %d (len %jd)\n",
+ DBG(" attr %d (len %d)\n",
attr->rta_type, RTA_PAYLOAD(attr));
}