Re: [PATCH 1/4] btrfs-progs: use usage() to replace the warning msg on no-arg usage

2014-02-14 Thread David Sterba
On Thu, Feb 13, 2014 at 11:16:35AM +0800, Gui Hecheng wrote: --- a/cmds-receive.c +++ b/cmds-receive.c @@ -951,10 +951,8 @@ int cmd_receive(int argc, char **argv) } } - if (optind + 1 != argc) { - fprintf(stderr, ERROR: receive needs path to

[PATCH 1/4] btrfs-progs: use usage() to replace the warning msg on no-arg usage

2014-02-12 Thread Gui Hecheng
To be consistent with the other cmds, replace the warning msg with usage() when send/receive are used without any args. Signed-off-by: Gui Hecheng guihc.f...@cn.fujitsu.com --- cmds-receive.c | 6 ++ cmds-send.c| 7 ++- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git