Skip to content

Commit

Permalink
hosted: Fix incorrect format specifiers for Windows
Browse files Browse the repository at this point in the history
Co-authored-by: dragonmux <[email protected]>
Co-authored-by: L. E. Segovia <[email protected]>
  • Loading branch information
amyspark and dragonmux committed Jul 18, 2023
1 parent 90fdc47 commit 75962e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platforms/hosted/bmp_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) ||
Expand Down Expand Up @@ -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 <pos>, or "
DEBUG_WARN("%zu debuggers found!\nSelect with -P <pos>, or "
"-s <(partial)serial no.>\n",
probes_found);
probes_found = 0;
Expand Down

0 comments on commit 75962e8

Please sign in to comment.