src/liboping.c: Fix building with debugging enabled.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Tue, 26 Oct 2010 13:17:10 +0000 (15:17 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Tue, 26 Oct 2010 13:17:10 +0000 (15:17 +0200)
src/liboping.c

index d5e1ffc..96a54cc 100644 (file)
@@ -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));
        }