btrfs-progs: output the correct path when fi-usage failed
authorGui Hecheng <guihc.fnst@cn.fujitsu.com>
Thu, 24 Jul 2014 03:27:28 +0000 (11:27 +0800)
committerDavid Sterba <dsterba@suse.cz>
Thu, 4 Dec 2014 15:48:12 +0000 (16:48 +0100)
commitb11c8d639eba34d457046dd19c126e12da0865fd
tree6e5d1411bb32269eb079d598044649e6dd31f110
parentb2784b0fa15049608b128f42a3c56303e53dff84
btrfs-progs: output the correct path when fi-usage failed

When we exec the following cmd:
# btrfs file usage -t <path>  <-- an invalid path
output:
# ERROR: can't access '-t'
should be:
# ERROR: can't access 'path'

Just replace the static 'argv[1]' with 'argv[i]'.

Signed-off-by: Gui Hecheng <guihc.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
cmds-fi-disk_usage.c