summaryrefslogtreecommitdiffstats
path: root/lib/msg.c
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2010-10-29 16:34:27 (GMT)
committerThomas Graf <tgraf@suug.ch>2010-10-29 16:34:27 (GMT)
commitcc22992d0c33abba42d94fb9489411f762cd70eb (patch)
tree3d3e135fcc5818ebb7785bce8dc967e1ea3b69f3 /lib/msg.c
parentf703192a4f3463352dab1a24868343bb7473607b (diff)
downloadlibnl-cc22992d0c33abba42d94fb9489411f762cd70eb.zip
libnl-cc22992d0c33abba42d94fb9489411f762cd70eb.tar.gz
libnl-cc22992d0c33abba42d94fb9489411f762cd70eb.tar.bz2
Improved debugging messages while constructing messages/attributes
Diffstat (limited to 'lib/msg.c')
-rw-r--r--lib/msg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/msg.c b/lib/msg.c
index 6a8e14a..615decf 100644
--- a/lib/msg.c
+++ b/lib/msg.c
@@ -529,8 +529,8 @@ void *nlmsg_reserve(struct nl_msg *n, size_t len, int pad)
if (tlen > len)
memset(buf + len, 0, tlen - len);
- NL_DBG(2, "msg %p: Reserved %zu bytes, pad=%d, nlmsg_len=%d\n",
- n, len, pad, n->nm_nlh->nlmsg_len);
+ NL_DBG(2, "msg %p: Reserved %zu (%zu) bytes, pad=%d, nlmsg_len=%d\n",
+ n, tlen, len, pad, n->nm_nlh->nlmsg_len);
return buf;
}