summaryrefslogtreecommitdiff
path: root/omapip
diff options
context:
space:
mode:
authorDamien Neil <source@isc.org>2001-02-15 20:35:40 +0000
committerDamien Neil <source@isc.org>2001-02-15 20:35:40 +0000
commit5f23e89579840001b87213e388b1a022a2505ec1 (patch)
tree81b3a1ce12381c999e93261cc7678e47049ac078 /omapip
parent2844788f4e2ef1d8a72267b2def926d79ac08ee6 (diff)
downloadisc-dhcp-5f23e89579840001b87213e388b1a022a2505ec1.tar.gz
Fixes for several log_*() format bugs: %d -> %ld, plus a cast to (long int).
Diffstat (limited to 'omapip')
-rw-r--r--omapip/connection.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/omapip/connection.c b/omapip/connection.c
index 07b857e6..01498858 100644
--- a/omapip/connection.c
+++ b/omapip/connection.c
@@ -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) { }