btrfs-progs: print error within test_dev_for_mkfs
authorDavid Sterba <dsterba@suse.cz>
Wed, 10 Jun 2015 22:46:30 +0000 (00:46 +0200)
committerDavid Sterba <dsterba@suse.cz>
Wed, 10 Jun 2015 22:46:30 +0000 (00:46 +0200)
commitc848046eb984fcbeeb78d681bf483aefbb35a013
tree73089fe97e851ebb914c4fb10925a57eb160b156
parent4647ab887a592516841f74fa47586771bbcad81b
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>
cmds-device.c
cmds-replace.c
mkfs.c
utils.c
utils.h