From 0c3e5a710b1e07caa79916117262ed7d83f96387 Mon Sep 17 00:00:00 2001 From: Luotao Fu Date: Mon, 23 Nov 2009 12:35:08 +0100 Subject: [PATCH] fix printf format Signed-off-by: Luotao Fu --- src/socketcan_netlink.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/socketcan_netlink.c b/src/socketcan_netlink.c index 2ff5fd0..693d323 100644 --- a/src/socketcan_netlink.c +++ b/src/socketcan_netlink.c @@ -77,7 +77,7 @@ static int addattr32(struct nlmsghdr *n, size_t maxlen, int type, __u32 data) if (NLMSG_ALIGN(n->nlmsg_len) + len > maxlen) { fprintf(stderr, - "addattr32: Error! max allowed bound %lu exceeded\n", + "addattr32: Error! max allowed bound %zu exceeded\n", maxlen); return -1; } @@ -99,7 +99,7 @@ static int addattr_l(struct nlmsghdr *n, size_t maxlen, int type, if (NLMSG_ALIGN(n->nlmsg_len) + RTA_ALIGN(len) > maxlen) { fprintf(stderr, - "addattr_l ERROR: message exceeded bound of %lu\n", + "addattr_l ERROR: message exceeded bound of %zu\n", maxlen); return -1; }