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 <jmmahler@gmail.com> Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>pull/1/head
parent
7492b1c873
commit
86023b8640
5
slcand.c
5
slcand.c
|
|
@ -71,8 +71,9 @@ void print_usage(char *prg)
|
||||||
fprintf(stderr, " -F (stay in foreground; no daemonize)\n");
|
fprintf(stderr, " -F (stay in foreground; no daemonize)\n");
|
||||||
fprintf(stderr, " -h (show this help page)\n");
|
fprintf(stderr, " -h (show this help page)\n");
|
||||||
fprintf(stderr, "\nExamples:\n");
|
fprintf(stderr, "\nExamples:\n");
|
||||||
fprintf(stderr, "slcand -o -c -f -s6 ttyslcan0\n");
|
fprintf(stderr, "slcand -o -c -f -s6 ttyUSB0\n");
|
||||||
fprintf(stderr, "slcand -o -c -f -s6 ttyslcan0 can0\n");
|
fprintf(stderr, "slcand -o -c -f -s6 ttyUSB0 can0\n");
|
||||||
|
fprintf(stderr, "slcand -o -c -f -s6 /dev/ttyUSB0\n");
|
||||||
fprintf(stderr, "\n");
|
fprintf(stderr, "\n");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue