summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0109e3c)
raw | patch | inline | side by side (parent: 0109e3c)
author | Florian Forster <octo@huhu.verplant.org> | |
Mon, 18 Aug 2008 14:18:41 +0000 (16:18 +0200) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Mon, 18 Aug 2008 14:18:41 +0000 (16:18 +0200) |
src/tcpconns.c | patch | blob | history |
diff --git a/src/tcpconns.c b/src/tcpconns.c
index 5a8f461971a8909391a99d36bb89eacf57d71252..0fa44f9aad7bac5357d097d55afb192979060d1f 100644 (file)
--- a/src/tcpconns.c
+++ b/src/tcpconns.c
|| (pe->flags & PORT_COLLECT_LOCAL))
{
snprintf (vl.plugin_instance, sizeof (vl.plugin_instance),
- "%hu-local", pe->port);
+ "%"PRIu16"-local", pe->port);
vl.plugin_instance[sizeof (vl.plugin_instance) - 1] = '\0';
for (i = 1; i <= TCP_STATE_MAX; i++)
if (pe->flags & PORT_COLLECT_REMOTE)
{
snprintf (vl.plugin_instance, sizeof (vl.plugin_instance),
- "%hu-remote", pe->port);
+ "%"PRIu16"-remote", pe->port);
vl.plugin_instance[sizeof (vl.plugin_instance) - 1] = '\0';
for (i = 1; i <= TCP_STATE_MAX; i++)
port_entry_t *next = pe->next;
DEBUG ("tcpconns plugin: Removing temporary entry "
- "for listening port %hu", pe->port);
+ "for listening port %"PRIu16, pe->port);
if (prev == NULL)
port_list_head = next;
@@ -271,7 +271,7 @@ static int conn_handle_ports (uint16_t port_local, uint16_t port_remote, uint8_t
pe->flags |= PORT_IS_LISTENING;
}
- DEBUG ("tcpconns plugin: Connection %hu <-> %hu (%s)",
+ DEBUG ("tcpconns plugin: Connection %"PRIu16" <-> %"PRIu16" (%s)",
port_local, port_remote, tcp_state[state]);
pe = conn_get_port_entry (port_local, 0 /* no create */);