summaryrefslogtreecommitdiff
path: root/utils.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2015-06-11 00:51:15 +0200
committerDavid Sterba <dsterba@suse.cz>2015-06-11 00:51:15 +0200
commit4ceffd0927360c83bec94606112b4e59cb7d2d73 (patch)
treee68e184aeca6626d4e1ed78c6ba79e1fb33a0956 /utils.h
parentc848046eb984fcbeeb78d681bf483aefbb35a013 (diff)
btrfs-progs: print error within test_num_disk_vs_raid
The error string buffer passed as an argument is of a fixed size, though we could print up to PATH_MAX + something bytes. Print the error message directly. Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'utils.h')
-rw-r--r--utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils.h b/utils.h
index 08518c5e..9b6a07b6 100644
--- a/utils.h
+++ b/utils.h
@@ -159,7 +159,7 @@ u64 btrfs_device_size(int fd, struct stat *st);
int test_dev_for_mkfs(char *file, int force_overwrite);
int get_label_mounted(const char *mount_path, char *labelp);
int test_num_disk_vs_raid(u64 metadata_profile, u64 data_profile,
- u64 dev_cnt, int mixed, char *estr);
+ u64 dev_cnt, int mixed);
int group_profile_max_safe_loss(u64 flags);
int is_vol_small(char *file);
int csum_tree_block(struct btrfs_root *root, struct extent_buffer *buf,