aboutsummaryrefslogtreecommitdiffstats
path: root/extcap.c
diff options
context:
space:
mode:
authorJoão Valverde <j@v6e.pt>2023-01-12 03:43:59 +0000
committerJoão Valverde <j@v6e.pt>2023-01-13 15:48:03 +0000
commitd902cabd3fb880a2d2ff348cde4a4df6246d1d32 (patch)
treef5591f735e89a498a0c48833eb97297e29d5b1a9 /extcap.c
parent8cd74b7cd475cf7e2321c34ed2dcc29c09a961a6 (diff)
MinGW: Fix -Wformat
Diffstat (limited to 'extcap.c')
-rw-r--r--extcap.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/extcap.c b/extcap.c
index f27337e2bd..db909b34a8 100644
--- a/extcap.c
+++ b/extcap.c
@@ -1255,8 +1255,8 @@ void extcap_request_stop(capture_session *cap_session)
continue;
}
- ws_debug("Extcap [%s] - Requesting stop PID: %d", interface_opts->name,
- interface_opts->extcap_pid);
+ ws_debug("Extcap [%s] - Requesting stop PID: %"PRIdMAX, interface_opts->name,
+ (intmax_t)interface_opts->extcap_pid);
#ifndef _WIN32
if (interface_opts->extcap_pid != WS_INVALID_PID)
@@ -1499,8 +1499,8 @@ static void extcap_child_watch_cb(GPid pid, gint status _U_, gpointer user_data)
interface_opts = &g_array_index(capture_opts->ifaces, interface_options, i);
if (interface_opts->extcap_pid == pid)
{
- ws_debug("Extcap [%s] - Closing spawned PID: %d", interface_opts->name,
- interface_opts->extcap_pid);
+ ws_debug("Extcap [%s] - Closing spawned PID: %"PRIdMAX, interface_opts->name,
+ (intmax_t)interface_opts->extcap_pid);
interface_opts->extcap_pid = WS_INVALID_PID;
extcap_watch_removed(cap_session, interface_opts);
break;
@@ -1648,13 +1648,13 @@ static gboolean extcap_create_pipe(const gchar *ifname, gchar **fifo, HANDLE *ha
if (*handle_out == INVALID_HANDLE_VALUE)
{
- ws_debug("Error creating pipe => (%d)", GetLastError());
+ ws_debug("Error creating pipe => (%ld)", GetLastError());
g_free (pipename);
return FALSE;
}
else
{
- ws_debug("Wireshark Created pipe =>(%s) handle (%" PRIuPTR ")", pipename, *handle_out);
+ ws_debug("Wireshark Created pipe =>(%s) handle (%" PRIuMAX ")", pipename, (uintmax_t)*handle_out);
*fifo = g_strdup(pipename);
}