]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Standardize our printf code on %d, not %i.
authorNick Mathewson <nickm@torproject.org>
Tue, 19 Apr 2011 16:40:26 +0000 (12:40 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 19 Apr 2011 16:40:29 +0000 (12:40 -0400)
src/common/address.c
src/or/routerparse.c
src/test/test_addr.c

index adc0ef0f7cbf87d98d27cd46bbaae7a15481d8d8..aff517ca51e97d2b7d0f26879232e6d0a09ef3b2 100644 (file)
@@ -604,7 +604,7 @@ tor_addr_parse_mask_ports(const char *s, tor_addr_t *addr_out,
       if (family == AF_INET6 && v4map) {
         if (bits > 32 && bits < 96) { /* Crazy */
           log_warn(LD_GENERAL,
-                   "Bad mask bits %i for V4-mapped V6 address; rejecting.",
+                   "Bad mask bits %d for V4-mapped V6 address; rejecting.",
                    bits);
           goto err;
         }
index dd72eb6bb4b569879a1868849ca42f45e4edca88..ba29f056f17f96c003c5a88fea10da8aac6d675e 100644 (file)
@@ -4641,8 +4641,8 @@ rend_parse_v2_service_descriptor(rend_service_descriptor_t **parsed_out,
   if (eos-desc > REND_DESC_MAX_SIZE) {
     /* XXX023 If we are parsing this descriptor as a server, this
      * should be a protocol warning. */
-    log_warn(LD_REND, "Descriptor length is %i which exceeds "
-             "maximum rendezvous descriptor size of %i bytes.",
+    log_warn(LD_REND, "Descriptor length is %d which exceeds "
+             "maximum rendezvous descriptor size of %d bytes.",
              (int)(eos-desc), REND_DESC_MAX_SIZE);
     goto err;
   }
index 20ffaa0c523ce8fd3ade8f77cd41d6956d91296b..6db4ee24831347945276f74aba46f317fe6c846d 100644 (file)
@@ -477,9 +477,9 @@ test_addr_ip6_helpers(void)
   i = get_interface_address6(LOG_DEBUG, AF_INET6, &t2);
 #if 0
   tor_inet_ntop(AF_INET, &t1.sa.sin_addr, buf, sizeof(buf));
-  printf("\nv4 address: %s  (family=%i)", buf, IN_FAMILY(&t1));
+  printf("\nv4 address: %s  (family=%d)", buf, IN_FAMILY(&t1));
   tor_inet_ntop(AF_INET6, &t2.sa6.sin6_addr, buf, sizeof(buf));
-  printf("\nv6 address: %s  (family=%i)", buf, IN_FAMILY(&t2));
+  printf("\nv6 address: %s  (family=%d)", buf, IN_FAMILY(&t2));
 #endif
 
  done: