aboutsummaryrefslogtreecommitdiffstats
path: root/utils.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2015-06-11 00:46:30 +0200
committerDavid Sterba <dsterba@suse.cz>2015-06-11 00:46:30 +0200
commitc848046eb984fcbeeb78d681bf483aefbb35a013 (patch)
tree73089fe97e851ebb914c4fb10925a57eb160b156 /utils.h
parent4647ab887a592516841f74fa47586771bbcad81b (diff)
downloadbtrfs-progs-c848046eb984fcbeeb78d681bf483aefbb35a013.tar.gz
btrfs-progs-c848046eb984fcbeeb78d681bf483aefbb35a013.tar.xz
btrfs-progs-c848046eb984fcbeeb78d681bf483aefbb35a013.zip
btrfs-progs: print error within test_dev_for_mkfs
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 50d1853..08518c5 100644
--- a/utils.h
+++ b/utils.h
@@ -156,7 +156,7 @@ int open_path_or_dev_mnt(const char *path, DIR **dirstream);
u64 btrfs_device_size(int fd, struct stat *st);
/* Helper to always get proper size of the destination string */
#define strncpy_null(dest, src) __strncpy__null(dest, src, sizeof(dest))
-int test_dev_for_mkfs(char *file, int force_overwrite, char *estr);
+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);