]> rtime.felk.cvut.cz Git - can-utils.git/commitdiff
slcand: improve usage examples
authorJeremiah Mahler <jmmahler@gmail.com>
Fri, 19 Dec 2014 15:22:16 +0000 (07:22 -0800)
committerOliver Hartkopp <socketcan@hartkopp.net>
Tue, 23 Dec 2014 17:02:03 +0000 (18:02 +0100)
The examples in the usage of slcand use a 'ttyslcan0' device which
is an uncommon name.  Use a more common ttyUSB0 name which is seen
with CANUSB devices.  Also, add an example showing that /dev/ttyUSB0
can be use as well.

Signed-off-by: Jeremiah Mahler <jmmahler@gmail.com>
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
slcand.c

index d71ba4d3a39eae1e40381e41c8a65551868eb09e..55775daab9d27bfe8331c56c7cd7eb2adb3f690f 100644 (file)
--- a/slcand.c
+++ b/slcand.c
@@ -71,8 +71,9 @@ void print_usage(char *prg)
        fprintf(stderr, "         -F         (stay in foreground; no daemonize)\n");
        fprintf(stderr, "         -h         (show this help page)\n");
        fprintf(stderr, "\nExamples:\n");
-       fprintf(stderr, "slcand -o -c -f -s6 ttyslcan0\n");
-       fprintf(stderr, "slcand -o -c -f -s6 ttyslcan0 can0\n");
+       fprintf(stderr, "slcand -o -c -f -s6 ttyUSB0\n");
+       fprintf(stderr, "slcand -o -c -f -s6 ttyUSB0 can0\n");
+       fprintf(stderr, "slcand -o -c -f -s6 /dev/ttyUSB0\n");
        fprintf(stderr, "\n");
        exit(EXIT_FAILURE);
 }