From 669ba5cadfb15842e90d8aa7ba5a575f7a457b3e Mon Sep 17 00:00:00 2001 From: Jeff Garzik Date: Mon, 23 Mar 2009 04:58:11 -0400 Subject: Command line help does not require DEVNAME on command line. Reflect this in usage text. Patch via Robert Scheck , possibly other sources as well? Signed-off-by: Jeff Garzik --- ethtool.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ethtool.c') diff --git a/ethtool.c b/ethtool.c index 43ec2bf..0110682 100644 --- a/ethtool.c +++ b/ethtool.c @@ -213,8 +213,9 @@ static void show_usage(int badarg) "Usage:\n" "ethtool DEVNAME\tDisplay standard information about device\n"); for (i = 0; args[i].srt; i++) { - fprintf(stdout, " ethtool %s|%s DEVNAME\t%s\n%s", + fprintf(stdout, " ethtool %s|%s %s\t%s\n%s", args[i].srt, args[i].lng, + strstr(args[i].srt, "-h") ? "\t" : "DEVNAME", args[i].help, args[i].opthelp ? args[i].opthelp : ""); } -- cgit v1.2.1