* [PATCH] Changed type field to be %x for tree header (line in btrfs_print_tree)
@ 2008-06-10 15:46 Alan D. Brunelle
2008-06-10 18:30 ` Chris Mason
0 siblings, 1 reply; 3+ messages in thread
From: Alan D. Brunelle @ 2008-06-10 15:46 UTC (permalink / raw)
To: linux-btrfs; +Cc: Chris Mason
[-- Attachment #1: Type: text/plain, Size: 0 bytes --]
[-- Attachment #2: 0001-Changed-type-field-to-be-x-for-tree-header-like-in.patch --]
[-- Type: text/x-diff, Size: 758 bytes --]
This makes it easier to visually match keys - see:
print-tree.c:btrfs_print_tree():329:
printf("\tkey %d (%llu %x %llu) block %llu (%llu) gen %llu\n",
I'm not sure if this breaks any other parsers?
Signed-off-by: Alan D. Brunelle <alan.brunelle@hp.com>
---
debug-tree.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/debug-tree.c b/debug-tree.c
index fa5c90c..9185dc2 100644
--- a/debug-tree.c
+++ b/debug-tree.c
@@ -190,7 +190,7 @@ int main(int ac, char **av)
break;
}
if (!skip && !extent_only) {
- printf("tree %llu %u %llu\n",
+ printf("tree %llu %x %llu\n",
(unsigned long long)found_key.objectid,
found_key.type,
(unsigned long long)found_key.offset);
--
1.5.4.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Changed type field to be %x for tree header (line in btrfs_print_tree)
2008-06-10 15:46 [PATCH] Changed type field to be %x for tree header (line in btrfs_print_tree) Alan D. Brunelle
@ 2008-06-10 18:30 ` Chris Mason
2008-06-10 19:01 ` Alan D. Brunelle
0 siblings, 1 reply; 3+ messages in thread
From: Chris Mason @ 2008-06-10 18:30 UTC (permalink / raw)
To: Alan D. Brunelle; +Cc: linux-btrfs
[ use %x for key type printks ]
I've gone back and forth on this, since the type used to be a mask.
But, right now all the #defines are in decimal, I'd rather keep the
output the same way.
-chris
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Changed type field to be %x for tree header (line in btrfs_print_tree)
2008-06-10 18:30 ` Chris Mason
@ 2008-06-10 19:01 ` Alan D. Brunelle
0 siblings, 0 replies; 3+ messages in thread
From: Alan D. Brunelle @ 2008-06-10 19:01 UTC (permalink / raw)
To: Chris Mason; +Cc: linux-btrfs
Chris Mason wrote:
> [ use %x for key type printks ]
>
> I've gone back and forth on this, since the type used to be a mask.
> But, right now all the #defines are in decimal, I'd rather keep the
> output the same way.
>
> -chris
Then, perhaps, one should change the %x in
print-tree.c:btrfs_print_tree() to a %u?
Alan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-06-10 19:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-10 15:46 [PATCH] Changed type field to be %x for tree header (line in btrfs_print_tree) Alan D. Brunelle
2008-06-10 18:30 ` Chris Mason
2008-06-10 19:01 ` Alan D. Brunelle
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.