btrfs-progs: pretty print device size in overflow error message

Signed-off-by: David Sterba <dsterba@suse.com>
master
David Sterba 2019-08-27 17:04:58 +02:00
parent 893934258d
commit 88fc7becac
1 changed files with 2 additions and 2 deletions

View File

@ -160,8 +160,8 @@ int btrfs_add_to_fsid(struct btrfs_trans_handle *trans,
if (check_add_overflow(old_size, device_total_bytes, &new_size)) {
error(
"adding device of %llu bytes would exceed max file system size",
device->total_bytes);
"adding device of %llu (%s) bytes would exceed max file system size",
device->total_bytes, pretty_size(device->total_bytes));
ret = -EOVERFLOW;
goto out;
}