Ignore the trailing new line when printing trace entries.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25066 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
01f64d38f6
commit
0c45a1202d
@ -1000,7 +1000,13 @@ dump_tracing(int argc, char** argv)
|
||||
continue;
|
||||
}
|
||||
|
||||
kprintf("%5ld. %s\n", index, out.DumpEntry(entry));
|
||||
// don't print trailing new line
|
||||
const char* dump = out.DumpEntry(entry);
|
||||
int len = strlen(dump);
|
||||
if (len > 0 && dump[len - 1] == '\n')
|
||||
len--;
|
||||
|
||||
kprintf("%5ld. %.*s\n", index, len, dump);
|
||||
} else if (!hasFilter)
|
||||
kprintf("%5ld. ** uninitialized entry **\n", index);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user