Commit 65f25e1c authored by Leszek Swirski's avatar Leszek Swirski Committed by Commit Bot

[tools/logreader] Print overflow drops to stderr

Don't trash stdout with "dropped: overflow" messages (or other errors)
in the log reader, which then cause generated json files to fail to be
read by other tools.

Change-Id: Ie27639dbbee6fc9e8da0bc6901667c3a2835fbef
Reviewed-on: https://chromium-review.googlesource.com/456499Reviewed-by: 's avatarJaroslav Sevcik <jarin@chromium.org>
Commit-Queue: Leszek Swirski <leszeks@chromium.org>
Cr-Commit-Position: refs/heads/master@{#43901}
parent 72e53936
...@@ -158,7 +158,7 @@ LogReader.prototype.processStack = function(pc, func, stack) { ...@@ -158,7 +158,7 @@ LogReader.prototype.processStack = function(pc, func, stack) {
} else if (firstChar != 'o') { } else if (firstChar != 'o') {
fullStack.push(parseInt(frame, 16)); fullStack.push(parseInt(frame, 16));
} else { } else {
print("dropping: " + frame); this.printError("dropping: " + frame);
} }
} }
return fullStack; return fullStack;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment