Skip to content

Commit

Permalink
hosted/serial_win: Fix a format specifier error in display_error()
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonmux committed Jul 18, 2023
1 parent 2b0a074 commit 90fdc47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platforms/hosted/serial_win.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ static void display_error(const LSTATUS error, const char *const operation, cons
char *message = NULL;
FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL,
error, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (char *)&message, 0, NULL);
DEBUG_ERROR("Error %s %s, got error %08x: %s\n", operation, path, error, message);
DEBUG_ERROR("Error %s %s, got error %08lx: %s\n", operation, path, error, message);
LocalFree(message);
}

Expand Down

0 comments on commit 90fdc47

Please sign in to comment.