From: Oliver Hartkopp Date: Sat, 27 Feb 2010 16:07:58 +0000 (+0000) Subject: Rework of help text. X-Git-Url: https://rtime.felk.cvut.cz/gitweb/sojka/can-utils.git/commitdiff_plain/d81a13866b7c308afc1e22a5ac82903b7aa5948d Rework of help text. --- diff --git a/cangw.c b/cangw.c index e4312dc..a3681cf 100644 --- a/cangw.c +++ b/cangw.c @@ -134,7 +134,7 @@ void print_usage(char *prg) fprintf(stderr, "\nUsage: %s [options]\n\n", prg); fprintf(stderr, "Commands: -A (add a new rule)\n"); fprintf(stderr, " -D (delete a rule)\n"); - fprintf(stderr, " -F (flush - delete all rules)\n"); + fprintf(stderr, " -F (flush / delete all rules)\n"); fprintf(stderr, " -L (list all rules)\n"); fprintf(stderr, "Mandatory: -s (source netdevice)\n"); fprintf(stderr, " -d (destination netdevice)\n"); @@ -153,10 +153,10 @@ void print_usage(char *prg) fprintf(stderr, " - is an u32 value containing the CAN Identifier\n"); fprintf(stderr, " - is an u8 value containing the data length code (0 .. 8)\n"); fprintf(stderr, " - is always eight(!) u8 values containing the CAN frames data\n"); - fprintf(stderr, "The instructions are performed in the order 'AND' -> 'OR' -> 'XOR' -> 'SET'\n"); + fprintf(stderr, "The max. four modifications are performed in the order AND -> OR -> XOR -> SET\n"); fprintf(stderr, "\n"); fprintf(stderr, "Example:\n"); - fprintf(stderr, "%s -A -s can0 -d vcan3 -f 123:C00007FF -m SET:IL:80000333.4.1122334455667788\n", prg); + fprintf(stderr, "%s -A -s can0 -d vcan3 -e -f 123:C00007FF -m SET:IL:333.4.1122334455667788\n", prg); fprintf(stderr, "\n"); }