diff options
author | Theodore Ts'o <tytso@mit.edu> | 2009-08-09 22:46:13 +0200 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2009-08-09 22:46:13 +0200 |
commit | 0ef90db93a4ddfc300af288c2a1bfc1e6c79da64 (patch) | |
tree | 9a16d71efd6458777391c993f3b964cb5cebfb7d /fs/ext4/mballoc.c | |
parent | ext4: Add configurable run-time mballoc debugging (diff) | |
download | linux-0ef90db93a4ddfc300af288c2a1bfc1e6c79da64.tar.xz linux-0ef90db93a4ddfc300af288c2a1bfc1e6c79da64.zip |
ext4: Display the mballoc flags in mb_history in hex instead of decimal
Displaying the flags in base 16 makes it easier to see which flags
have been set.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to '')
-rw-r--r-- | fs/ext4/mballoc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index d80b300c1779..3434c603432d 100644 --- a/fs/ext4/mballoc.c +++ b/fs/ext4/mballoc.c @@ -2157,7 +2157,7 @@ static int ext4_mb_seq_history_show(struct seq_file *seq, void *v) if (v == SEQ_START_TOKEN) { seq_printf(seq, "%-5s %-8s %-23s %-23s %-23s %-5s " - "%-5s %-2s %-5s %-5s %-5s %-6s\n", + "%-5s %-2s %-6s %-5s %-5s %-6s\n", "pid", "inode", "original", "goal", "result", "found", "grps", "cr", "flags", "merge", "tail", "broken"); return 0; @@ -2165,7 +2165,7 @@ static int ext4_mb_seq_history_show(struct seq_file *seq, void *v) if (hs->op == EXT4_MB_HISTORY_ALLOC) { fmt = "%-5u %-8u %-23s %-23s %-23s %-5u %-5u %-2u " - "%-5u %-5s %-5u %-6u\n"; + "0x%04x %-5s %-5u %-6u\n"; sprintf(buf2, "%u/%d/%u@%u", hs->result.fe_group, hs->result.fe_start, hs->result.fe_len, hs->result.fe_logical); |