fix printf format

Signed-off-by: Luotao Fu <l.fu@pengutronix.de>
pull/106/head^2
Luotao Fu 2009-11-23 12:35:08 +01:00
parent 9c5c1090d1
commit 0c3e5a710b
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}