git: sbin/hammer: Change hammer show's printf format for elm base
Tomohiro Kusumi
tkusumi at crater.dragonflybsd.org
Thu Sep 24 07:46:37 PDT 2015
commit d9930283d4e41c9e04dd9389cf84eb0c4d9cbe47
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date: Wed Sep 23 00:52:56 2015 +0900
sbin/hammer: Change hammer show's printf format for elm base
This commit changes printf format for struct hammer_base_elm
fields. It doesn't change information to be printed, but it
does change the order.
This commit better explains how B-Tree nodes are located in
the B-Tree by having all 5 keys lo:objid:rectype:key:tid in
the same line. Since now that hammer show supports these keys
as search directives, it's better to directly reflect those
of each elm to hammer show's output.
ot (obj_type) isn't one of the 5 keys to compare node elms,
so this could(should) go to the next line.
===== (A) before this commit
...
G------ ELM 8 L lo=00000001 obj=0000000101da3ef7 rt=11 key=4c94cade3f178000 ot=00
tids=0000000104018590:0000000000000000 suboff=8000000020c78000 mirror=0000000104018590 *
...
G------ ELM 1 R lo=00000002 obj=0000000000000001 rt=15 key=0000000000020000 ot=01
d tids=00000001007e0ff0:000000010403b9b0
===== (B) with this commit
...
G------ ELM 8 L lo=00000001 obj=0000000101da3ef7 rt=11 key=4c94cade3f178000 tid=0000000104018590
del=0000000000000000 ot=00 suboff=8000000020c78000 mirror=0000000104018590 *
...
G------ ELM 1 R lo=00000002 obj=0000000000000001 rt=15 key=0000000000020000 tid=00000001007e0ff0
d del=000000010403b9b0 ot=01
Summary of changes:
sbin/hammer/cmd_show.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d9930283d4e41c9e04dd9389cf84eb0c4d9cbe47
--
DragonFly BSD source repository
More information about the Commits
mailing list