mirror of
https://github.com/linux-can/can-utils.git
synced 2026-08-06 06:49:53 +02:00
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>
This commit is contained in:
committed by
Oliver Hartkopp
parent
7492b1c873
commit
86023b8640
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user