hrev53115 adds 1 changeset to branch 'master'
old head: 9888752db1e1e543a24d3ca9286ac7979bae576d
new head: da452ce2bca637b25db43837d56213bf02c3fbfd
overview:
https://git.haiku-os.org/haiku/log/?qt=range&q=da452ce2bca6+%5E9888752db1e1
----------------------------------------------------------------------------
da452ce2bca6: strace: Print syscall names without the "_kern_".
This makes the output much easier to read (e.g. "write(...)" vs.
"_kern_write(...)") and similar to strace/dtrace/etc. output
on other platforms.
Change-Id: Iac8e32aae0dcf3731a348c6192203f8d5b54da7a
Reviewed-on: https://review.haiku-os.org/c/1451
Reviewed-by: Bruno Albuquerque <bga@xxxxxxxxxxxxx>
[ Augustin Cavalier <waddlesplash@xxxxxxxxx> ]
----------------------------------------------------------------------------
Revision: hrev53115
Commit: da452ce2bca637b25db43837d56213bf02c3fbfd
URL: https://git.haiku-os.org/haiku/commit/?id=da452ce2bca6
Author: Augustin Cavalier <waddlesplash@xxxxxxxxx>
Date: Mon May 13 21:54:08 2019 UTC
Committer: waddlesplash <waddlesplash@xxxxxxxxx>
Commit-Date: Mon May 13 22:11:33 2019 UTC
----------------------------------------------------------------------------
1 file changed, 4 insertions(+), 4 deletions(-)
src/bin/debug/strace/strace.cpp | 8 ++++----
----------------------------------------------------------------------------
diff --git a/src/bin/debug/strace/strace.cpp b/src/bin/debug/strace/strace.cpp
index 25a436b55f..60034901d4 100644
--- a/src/bin/debug/strace/strace.cpp
+++ b/src/bin/debug/strace/strace.cpp
@@ -310,14 +310,14 @@ print_syscall(FILE *outputFile, Syscall* syscall,
debug_post_syscall &message,
Context ctx(syscall, (char *)message.args, memoryReader,
contentsFlags, decimal);
- // print syscall name
+ // print syscall name, without the "_kern_"
if (colorize) {
print_to_string(&string, &length, "[%6ld] %s%s%s(",
- message.origin.thread, kTerminalTextBlue,
syscall->Name().c_str(),
- kTerminalTextNormal);
+ message.origin.thread, kTerminalTextBlue,
+ syscall->Name().c_str() + 6, kTerminalTextNormal);
} else {
print_to_string(&string, &length, "[%6ld] %s(",
- message.origin.thread, syscall->Name().c_str());
+ message.origin.thread, syscall->Name().c_str() + 6);
}
// print arguments