Stefan Reinauer uploaded patch set #2 to this change.

View Change

Add a brief mode for trace output

The log with -b|--brief will look like this:

0x5a @ 0x00000000 (read SFDP)
0x5a @ 0x00000008 (read SFDP)
0x5a @ 0x00000030 (read SFDP)
0xb7 (enter 4b mode)
0x03 @ 0x00000010 (read)
0x03 @ 0x00000014 (read)
0x03 @ 0x00000030 (read)
0x03 @ 0x00000040 (read)

Instead of this:

Time: 000000.00000000 command # 1 : 0x5a - read SFDP Table
00000000 : 53 46 44 50 00 01 01 ff
Time: 000000.00000575 command # 2 : 0x5a - read SFDP Table
00000008 : 00 00 01 09 30 00 00 ff
Time: 000000.00001149 command # 3 : 0x5a - read SFDP Table
00000030 : e5 20 f3 ff ff ff ff 0f 44 eb 08 6b 08 3b 04 bb
Time: 000000.00002053 command # 4 : 0xb7 - enter 4-byte address mode
Time: 000000.00002687 command # 5 : 0x03 - read
00000000 : 10 5a a5 f0 0f
Time: 000000.00003088 command # 6 : 0x03 - read
00000000 : 14 03 00 04 05 06 03 10 15 20 01 21 26
Time: 000000.00003825 command # 7 : 0x03 - read
00000000 : 30 f5 00 00 00 00 00 00 00 00 00 00 00
Time: 000000.00004569 command # 8 : 0x03 - read
00000000 : 40 00 00 00 00 00 08 ff 0f 23 00 ff 07 01 00 02
00000010 : 00 03 00 12 00 13 00 22 00 ff 7f 00 00


Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Change-Id: Icdaa3444bba03be8bf122239fd6da805cf840e52
---
M em100.c
M em100.h
M trace.c
3 files changed, 53 insertions(+), 27 deletions(-)

git pull ssh://review.coreboot.org:29418/em100 refs/changes/28/48728/2

To view, visit change 48728. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: em100
Gerrit-Branch: master
Gerrit-Change-Id: Icdaa3444bba03be8bf122239fd6da805cf840e52
Gerrit-Change-Number: 48728
Gerrit-PatchSet: 2
Gerrit-Owner: Stefan Reinauer <stefan.reinauer@coreboot.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-Reviewer: ron minnich <rminnich@gmail.com>
Gerrit-MessageType: newpatchset