Commit 0c3e5a71 authored by Luotao Fu's avatar Luotao Fu

fix printf format

Signed-off-by: 's avatarLuotao Fu <l.fu@pengutronix.de>
parent 9c5c1090
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment