Re: [PATCH v2 1/2] btrfs-progs: use switch instead of a series of ifs for output errormsg

2015-09-25 Thread David Sterba
On Thu, Aug 06, 2015 at 11:05:54AM +0800, Zhao Lei wrote: > switch statement is more suitable for outputing currsponding message > for errno. > > Suggested-by: David Sterba > Signed-off-by: Zhao Lei Applied, thanks. -- To unsubscribe from this list:

[PATCH v2 1/2] btrfs-progs: use switch instead of a series of ifs for output errormsg

2015-08-05 Thread Zhao Lei
switch statement is more suitable for outputing currsponding message for errno. Suggested-by: David Sterba dste...@suse.com Signed-off-by: Zhao Lei zhao...@cn.fujitsu.com --- cmds-scrub.c | 33 ++--- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git