diff options
author | David Sterba <dsterba@suse.com> | 2016-09-07 15:16:31 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-10-03 11:33:15 +0200 |
commit | 689b6249f357d88fd7307cb6dab32b836f87c999 (patch) | |
tree | 13240a404a5834afe5e5f2e21d1755736fbf33d3 /cmds-inspect-dump-super.c | |
parent | df36cbdad291104d49158df47916e187a8989bbb (diff) |
btrfs-progs: dump-super: switch to common message helpers
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'cmds-inspect-dump-super.c')
-rw-r--r-- | cmds-inspect-dump-super.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/cmds-inspect-dump-super.c b/cmds-inspect-dump-super.c index 0ae740a2..d5d394a0 100644 --- a/cmds-inspect-dump-super.c +++ b/cmds-inspect-dump-super.c @@ -103,8 +103,8 @@ static void print_sys_chunk_array(struct btrfs_super_block *sb) print_chunk(buf, chunk); num_stripes = btrfs_chunk_num_stripes(buf, chunk); if (!num_stripes) { - printk( - "ERROR: invalid number of stripes %u in sys_array at offset %u\n", + error( + "invalid number of stripes %u in sys_array at offset %u", num_stripes, cur_offset); break; } @@ -112,8 +112,7 @@ static void print_sys_chunk_array(struct btrfs_super_block *sb) if (cur_offset + len > array_size) goto out_short_read; } else { - printk( - "ERROR: unexpected item type %u in sys_array at offset %u\n", + error("unexpected item type %u in sys_array at offset %u", (u32)key.type, cur_offset); break; } @@ -129,7 +128,7 @@ out: return; out_short_read: - printk("ERROR: sys_array too short to read %u bytes at offset %u\n", + error("sys_array too short to read %u bytes at offset %u", len, cur_offset); free(buf); } |