diff --git a/src/platforms/hosted/bmp_serial.c b/src/platforms/hosted/bmp_serial.c index 8e87e6dc3e9..ff853b28b92 100644 --- a/src/platforms/hosted/bmp_serial.c +++ b/src/platforms/hosted/bmp_serial.c @@ -115,7 +115,7 @@ int find_debuggers(bmda_cli_options_s *cl_opts, bmp_info_s *info) (BYTE *)busReportedDeviceSesc, sizeof busReportedDeviceSesc, &dwSize, 0)) { probes_found++; if (is_printing_probes_info) { - DEBUG_WARN("%2d: %s, %ls\n", probes_found, serial_number, busReportedDeviceSesc); + DEBUG_WARN("%2zu: %s, %ls\n", probes_found, serial_number, busReportedDeviceSesc); } else { bool probe_identified = true; if ((cl_opts->opt_serial && strstr(serial_number, cl_opts->opt_serial)) || @@ -152,7 +152,7 @@ int find_debuggers(bmda_cli_options_s *cl_opts, bmp_info_s *info) * and no probe was identified as selected by the user. * Restart the identification loop, this time printing the probe information, * and then return. */ - DEBUG_WARN("%d debuggers found!\nSelect with -P , or " + DEBUG_WARN("%zu debuggers found!\nSelect with -P , or " "-s <(partial)serial no.>\n", probes_found); probes_found = 0;