]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Fixes for several log_*() format bugs: %d -> %ld, plus a cast to (long int).
authorDamien Neil <source@isc.org>
Thu, 15 Feb 2001 20:35:40 +0000 (20:35 +0000)
committerDamien Neil <source@isc.org>
Thu, 15 Feb 2001 20:35:40 +0000 (20:35 +0000)
omapip/connection.c

index 07b857e619458aaf6b9c97a15ab65a7bcc2d5f60..0149885805c157367461b68974b960a1b8525654 100644 (file)
@@ -354,9 +354,10 @@ static void trace_connect_input (trace_type_t *ttype,
                } omapi_array_foreach_end (trace_listeners,
                                           omapi_listener_object_t, lp);
                if (!listener) {
-                       log_error ("%s%d, addr %s, port %d",
+                       log_error ("%s%ld, addr %s, port %d",
                                   "Spurious traced listener connect - index ",
-                                  listener_index, inet_ntoa (local.sin_addr),
+                                  (long int)listener_index,
+                                  inet_ntoa (local.sin_addr),
                                   ntohs (local.sin_port));
                        return;
                }
@@ -392,8 +393,8 @@ static void trace_connect_input (trace_type_t *ttype,
        } omapi_array_foreach_end (omapi_connections,
                                   omapi_connection_object_t, lp);
                                                 
-       log_error ("Spurious traced connect - index %d, addr %s, port %d",
-                  connect_index, inet_ntoa (remote.sin_addr),
+       log_error ("Spurious traced connect - index %ld, addr %s, port %d",
+                  (long int)connect_index, inet_ntoa (remote.sin_addr),
                   ntohs (remote.sin_port));
        return;
 }
@@ -421,8 +422,8 @@ static void trace_disconnect_input (trace_type_t *ttype,
        } omapi_array_foreach_end (omapi_connections,
                                   omapi_connection_object_t, lp);
 
-       log_error ("trace disconnect: no connection matching index %d",
-                  ntohl (*index));
+       log_error ("trace disconnect: no connection matching index %ld",
+                  (long int)ntohl (*index));
 }
 
 static void trace_disconnect_stop (trace_type_t *ttype) { }