Skip to content

Commit

Permalink
dns_sd_windows: Fix invalid printf format string
Browse files Browse the repository at this point in the history
It should use "%zu" to print a size_t.

This fixes a compiler warning under MinGW when the log level is set to
Debug.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
  • Loading branch information
pcercuei committed Jul 5, 2023
1 parent eee8cba commit c34084e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dns_sd_windows.c
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ int dnssd_find_hosts(struct dns_sd_discovery_data **ddata)
for (isock = 0; isock < num_sockets; ++isock)
mdns_socket_close(sockets[isock]);

IIO_DEBUG("Closed %i socket%s, processed %i record%s\n",
IIO_DEBUG("Closed %i socket%s, processed %zu record%s\n",
num_sockets, (num_sockets > 1) ? "s" : "",
records, (records > 1) ? "s" : "" );

Expand Down

0 comments on commit c34084e

Please sign in to comment.