From 1d9f32f5329dc10fbd04f467381c600181547c9e Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 26 Oct 2010 15:17:10 +0200 Subject: [PATCH] src/liboping.c: Fix building with debugging enabled. --- src/liboping.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/liboping.c b/src/liboping.c index d5e1ffc..96a54cc 100644 --- a/src/liboping.c +++ b/src/liboping.c @@ -962,13 +962,13 @@ static int ping_set_tos (pinghost_t *ph, uint8_t tos) if (ph->addrfamily == AF_INET) { - dprintf ("Setting TP_TOS to %i\n", ttl); + dprintf ("Setting TP_TOS to %#04"PRIx8"\n", tos); ret = setsockopt (ph->fd, IPPROTO_IP, IP_TOS, &tos, sizeof (tos)); } else if (ph->addrfamily == AF_INET6) { - dprintf ("Setting IPV6_TCLASS to %i\n", ttl); + dprintf ("Setting IPV6_TCLASS to %#04"PRIx8"\n", tos); ret = setsockopt (ph->fd, IPPROTO_IPV6, IPV6_TCLASS, &tos, sizeof (tos)); } -- 2.30.2