From: Florian Forster Date: Tue, 26 Oct 2010 13:17:10 +0000 (+0200) Subject: src/liboping.c: Fix building with debugging enabled. X-Git-Tag: liboping-1.5.0~3^2~13 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1d9f32f5329dc10fbd04f467381c600181547c9e;p=liboping.git src/liboping.c: Fix building with debugging enabled. --- 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)); }