From 664dcf4217c4fc08cc43c050419fea8181d81ef1 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 10 Nov 2015 14:27:33 +0100 Subject: netsniff-ng: nlmsg: Use correct pritnf format specifier for int RTA_LEN is defined as an alias of RTA_PAYLOAD which is defined as: #define RTA_PAYLOAD(rta) ((int)((rta)->rta_len) - RTA_LENGTH(0)) Thus use the correct format specifier %d for int instead of %lu. Signed-off-by: Tobias Klauser --- proto_nlmsg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'proto_nlmsg.c') diff --git a/proto_nlmsg.c b/proto_nlmsg.c index ce97c6d..d3c913d 100644 --- a/proto_nlmsg.c +++ b/proto_nlmsg.c @@ -42,7 +42,7 @@ #define attr_fmt(attr, fmt, ...) \ tprintf("\tA: "fmt, ##__VA_ARGS__); \ - tprintf(", Len %lu\n", RTA_LEN(attr)); + tprintf(", Len %d\n", RTA_LEN(attr)); struct flag_name { const char *name; -- cgit v1.2.3-54-g00ecf