From 86023b864075b6d0813de86d5f08d680df6473c2 Mon Sep 17 00:00:00 2001 From: Jeremiah Mahler Date: Fri, 19 Dec 2014 07:22:16 -0800 Subject: [PATCH] slcand: improve usage examples 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 Signed-off-by: Oliver Hartkopp --- slcand.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/slcand.c b/slcand.c index d71ba4d..55775da 100644 --- 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); }