summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-11-10 14:27:33 +0100
committerTobias Klauser <tklauser@distanz.ch>2015-11-10 14:27:33 +0100
commit664dcf4217c4fc08cc43c050419fea8181d81ef1 (patch)
tree3c32cb97cf513ce90cc8e0da561c94cf68090cb8
parent125b8ffe5a48f1daa65e54935ede55d843141f8f (diff)
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 <tklauser@distanz.ch>
-rw-r--r--proto_nlmsg.c2
1 files changed, 1 insertions, 1 deletions
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;