btrfs-progs: Remove fprintf() in find_mount_root().
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Wed, 23 Jul 2014 05:47:34 +0000 (13:47 +0800)
committerDavid Sterba <dsterba@suse.cz>
Fri, 22 Aug 2014 13:07:02 +0000 (15:07 +0200)
commit10c8f34f519451d763ae6b40bd388d11f4d3d42f
tree4fff7d4bf283fcb5ec8d7c72d678587c74fa7ab6
parentb2d0e10d491f447cd2888e4af44fad9d442e524d
btrfs-progs: Remove fprintf() in find_mount_root().

find_mount_root() function in utils.c should not print error string.
Caller should be responsible to print error string.

This patch will remove the only fprintf in find_mount_root() and modify
the caller a little to use strerror() to prompt users.

Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
cmds-receive.c
cmds-send.c
utils.c