diff options
author | David Sterba <dsterba@suse.cz> | 2015-06-11 00:46:30 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2015-06-11 00:46:30 +0200 |
commit | c848046eb984fcbeeb78d681bf483aefbb35a013 (patch) | |
tree | 73089fe97e851ebb914c4fb10925a57eb160b156 /utils.h | |
parent | 4647ab887a592516841f74fa47586771bbcad81b (diff) | |
download | btrfs-progs-c848046eb984fcbeeb78d681bf483aefbb35a013.tar.gz |
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |