mirror of
https://github.com/kdave/btrfs-progs
synced 2025-04-11 03:31:17 +00:00
btrfs-progs: dump-super: switch to common message helpers
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
df36cbdad2
commit
689b6249f3
@ -103,8 +103,8 @@ static void print_sys_chunk_array(struct btrfs_super_block *sb)
|
|||||||
print_chunk(buf, chunk);
|
print_chunk(buf, chunk);
|
||||||
num_stripes = btrfs_chunk_num_stripes(buf, chunk);
|
num_stripes = btrfs_chunk_num_stripes(buf, chunk);
|
||||||
if (!num_stripes) {
|
if (!num_stripes) {
|
||||||
printk(
|
error(
|
||||||
"ERROR: invalid number of stripes %u in sys_array at offset %u\n",
|
"invalid number of stripes %u in sys_array at offset %u",
|
||||||
num_stripes, cur_offset);
|
num_stripes, cur_offset);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -112,8 +112,7 @@ static void print_sys_chunk_array(struct btrfs_super_block *sb)
|
|||||||
if (cur_offset + len > array_size)
|
if (cur_offset + len > array_size)
|
||||||
goto out_short_read;
|
goto out_short_read;
|
||||||
} else {
|
} else {
|
||||||
printk(
|
error("unexpected item type %u in sys_array at offset %u",
|
||||||
"ERROR: unexpected item type %u in sys_array at offset %u\n",
|
|
||||||
(u32)key.type, cur_offset);
|
(u32)key.type, cur_offset);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -129,7 +128,7 @@ out:
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
out_short_read:
|
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);
|
len, cur_offset);
|
||||||
free(buf);
|
free(buf);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user