bin/debug/strace: fix wrong type of arguments to formatting function
Pointed out by LGTM Change-Id: If8ca0a8c9b6c3be4c888921a7a704cd351d5e115 Reviewed-on: https://review.haiku-os.org/c/haiku/+/4605 Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
This commit is contained in:
parent
ea7b7a5408
commit
41ed621ea6
@ -350,11 +350,11 @@ print_syscall(FILE *outputFile, Syscall* syscall, debug_post_syscall &message,
|
||||
|
||||
// print syscall name, without the "_kern_"
|
||||
if (colorize) {
|
||||
print_to_string(&string, &length, "[%6ld] %s%s%s(",
|
||||
print_to_string(&string, &length, "[%6" B_PRId32 "] %s%s%s(",
|
||||
message.origin.thread, kTerminalTextBlue,
|
||||
syscall->Name().c_str() + 6, kTerminalTextNormal);
|
||||
} else {
|
||||
print_to_string(&string, &length, "[%6ld] %s(",
|
||||
print_to_string(&string, &length, "[%6" B_PRId32 "] %s(",
|
||||
message.origin.thread, syscall->Name().c_str() + 6);
|
||||
}
|
||||
|
||||
@ -439,11 +439,11 @@ print_signal(FILE *outputFile, debug_signal_received &message,
|
||||
|
||||
// print signal name
|
||||
if (colorize) {
|
||||
print_to_string(&string, &length, "[%6ld] --- %s%s (%s) %s---\n",
|
||||
print_to_string(&string, &length, "[%6" B_PRId32 "] --- %s%s (%s) %s---\n",
|
||||
message.origin.thread, kTerminalTextRed, signal_name(signalNumber),
|
||||
strsignal(signalNumber), kTerminalTextNormal);
|
||||
} else {
|
||||
print_to_string(&string, &length, "[%6ld] --- %s (%s) ---\n",
|
||||
print_to_string(&string, &length, "[%6" B_PRId32 "] --- %s (%s) ---\n",
|
||||
message.origin.thread, signal_name(signalNumber),
|
||||
strsignal(signalNumber));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user