diff options
author | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 2012-10-09 16:23:00 +0900 |
---|---|---|
committer | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 2012-10-11 14:24:06 +0900 |
commit | 1f3d27ec4f627f3dfaa2141c64a76109ce2817e2 (patch) | |
tree | 2da24e34f294a2389b5a59853dfb3f7ca9c3db06 /ninfod | |
parent | f88eefc736fbf773c088ba94b1c39e3ad3187937 (diff) | |
download | iputils-1f3d27ec4f627f3dfaa2141c64a76109ce2817e2.tar.gz |
ninfod: Use %zu format string for size_t variable.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Diffstat (limited to 'ninfod')
-rw-r--r-- | ninfod/ninfod.h | 2 | ||||
-rw-r--r-- | ninfod/ninfod_addrs.c | 4 | ||||
-rw-r--r-- | ninfod/ninfod_core.c | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/ninfod/ninfod.h b/ninfod/ninfod.h index 2de9dbc..6a716a4 100644 --- a/ninfod/ninfod.h +++ b/ninfod/ninfod.h @@ -103,7 +103,7 @@ void stderrlog(int priority, char *format, ...); #define ni_malloc(size) ({ \ size_t _size = (size); \ void *p = malloc(_size); \ - DEBUG(LOG_DEBUG, "%s(): malloc(%d) = %p\n", __FUNCTION__, _size, p); \ + DEBUG(LOG_DEBUG, "%s(): malloc(%zu) = %p\n", __FUNCTION__, _size, p); \ p; \ }) #define ni_free(p) ({ \ diff --git a/ninfod/ninfod_addrs.c b/ninfod/ninfod_addrs.c index 9668a0d..4b03d21 100644 --- a/ninfod/ninfod_addrs.c +++ b/ninfod/ninfod_addrs.c @@ -158,7 +158,7 @@ int pr_nodeinfo_ipv6addr(CHECKANDFILL_ARGS) if (subject && subjlen != sizeof(struct in6_addr)) { DEBUG(LOG_INFO, - "%s(): invalid subject length %u for IPv6 Address Subject\n", + "%s(): invalid subject length %zu for IPv6 Address Subject\n", __FUNCTION__, subjlen); return 1; } @@ -327,7 +327,7 @@ int pr_nodeinfo_ipv4addr(CHECKANDFILL_ARGS) if (subject && subjlen != sizeof(struct in_addr)) { DEBUG(LOG_INFO, - "%s(): invalid subject length %u for IPv4 Address Subject\n", + "%s(): invalid subject length %zu for IPv4 Address Subject\n", __FUNCTION__, subjlen); return 1; } diff --git a/ninfod/ninfod_core.c b/ninfod/ninfod_core.c index d2ce923..6639a7f 100644 --- a/ninfod/ninfod_core.c +++ b/ninfod/ninfod_core.c @@ -245,7 +245,7 @@ int pr_nodeinfo_noop(CHECKANDFILL_ARGS) if (subjlen) { DEBUG(LOG_WARNING, - "%s(): invalid subject length(%d)\n", + "%s(): invalid subject length(%zu)\n", __FUNCTION__, subjlen); return 1; } @@ -273,7 +273,7 @@ int pr_nodeinfo_suptypes(CHECKANDFILL_ARGS) DEBUG(LOG_DEBUG, "%s()\n", __FUNCTION__); if (subjlen) { - DEBUG(LOG_WARNING, "%s(): invalid subject length(%d)\n", + DEBUG(LOG_WARNING, "%s(): invalid subject length(%zu)\n", __FUNCTION__, subjlen); return 1; } |