From: Oliver Hartkopp Date: Fri, 22 Jun 2007 08:25:34 +0000 (+0000) Subject: Changed option name '-l' to '-x' as this option should also go into canplayer. X-Git-Tag: 0.1~213 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a121452698b36eb802b8cbbc214751bf98ed21de;p=profile%2Fivi%2Fcan-utils.git Changed option name '-l' to '-x' as this option should also go into canplayer. Cosmetics in print_help(). --- diff --git a/cangen.c b/cangen.c index 0df4398..ae09e94 100644 --- a/cangen.c +++ b/cangen.c @@ -77,21 +77,21 @@ void print_usage(char *prg) { fprintf(stderr, "\n%s: generate random CAN frames\n\n", prg); fprintf(stderr, "Usage: %s [can-interface]\n", prg); - fprintf(stderr, "Options: -g (gap in milli seconds) " + fprintf(stderr, "Options: -g (gap in milli seconds) " "default: %d\n", DEFAULT_GAP); - fprintf(stderr, " -e (extended frame mode) " + fprintf(stderr, " -e (extended frame mode) " "default: standard frame format \n"); - fprintf(stderr, " -I (fixed CAN ID) " + fprintf(stderr, " -I (fixed CAN ID) " "default: 0x123\n"); - fprintf(stderr, " -D (fixed CAN Data) " + fprintf(stderr, " -D (fixed CAN Data) " "default: 01 23 45 67 89 AB CD EF\n"); - fprintf(stderr, " -L (fixed CAN DLC) " + fprintf(stderr, " -L (fixed CAN DLC) " "default: 8\n"); - fprintf(stderr, " -f (other fixed CAN frame) " + fprintf(stderr, " -f (other fixed CAN frame) " "default: 123#0123456789ABCDEF\n"); - fprintf(stderr, " -l (local loopback disable) " - "default: loopback\n"); - fprintf(stderr, " -v (verbose) " + fprintf(stderr, " -x (disable loopback) " + "default: standard loopback\n"); + fprintf(stderr, " -v (verbose) " "default: don't print sent frames\n"); } @@ -125,7 +125,7 @@ int main(int argc, char **argv) signal(SIGHUP, sigterm); signal(SIGINT, sigterm); - while ((opt = getopt(argc, argv, "g:eIDLf:lv")) != -1) { + while ((opt = getopt(argc, argv, "g:eIDLf:xv")) != -1) { switch (opt) { case 'g': gap = strtoul(optarg, NULL, 10); @@ -159,7 +159,7 @@ int main(int argc, char **argv) verbose = 1; break; - case 'l': + case 'x': loopback_disable = 1; break;