mirror of
https://github.com/linux-can/can-utils.git
synced 2026-08-06 06:49:53 +02:00
slcanpty.c: Reformat help/usage output to be compatible with help2man.
Gbp-Pq: Name 0029-slcanpty.c-Reformat-help-usage-output-to-be-compatib.patch
This commit is contained in:
committed by
Alexander Gerasiov
parent
d89b38de8a
commit
f638cdc79b
+6
-5
@@ -430,14 +430,15 @@ int main(int argc, char **argv)
|
|||||||
if (argc != 3) {
|
if (argc != 3) {
|
||||||
fprintf(stderr, "\n");
|
fprintf(stderr, "\n");
|
||||||
fprintf(stderr, "%s creates a pty for applications using"
|
fprintf(stderr, "%s creates a pty for applications using"
|
||||||
" the slcan ASCII protocol and\n", argv[0]);
|
" the slcan ASCII protocol and\n", basename(argv[0]));
|
||||||
fprintf(stderr, "converts the ASCII data to a CAN network"
|
fprintf(stderr, "converts the ASCII data to a CAN network"
|
||||||
" interface (and vice versa)\n\n");
|
" interface (and vice versa)\n\n");
|
||||||
fprintf(stderr, "Usage: %s <pty> <can interface>\n", argv[0]);
|
fprintf(stderr, "Usage: %s <pty> <can interface>\n", basename(argv[0]));
|
||||||
fprintf(stderr, "e.g. '%s /dev/ptyc0 can0' creates"
|
fprintf(stderr, "Examples:\n");
|
||||||
" /dev/ttyc0 for the slcan application\n", argv[0]);
|
fprintf(stderr, "%s /dev/ptyc0 can0 - creates /dev/ttyc0 for the slcan application\n\n",
|
||||||
|
basename(argv[0]));
|
||||||
fprintf(stderr, "e.g. for pseudo-terminal '%s %s can0' creates"
|
fprintf(stderr, "e.g. for pseudo-terminal '%s %s can0' creates"
|
||||||
" /dev/pts/N\n", argv[0], DEVICE_NAME_PTMX);
|
" /dev/pts/N\n", basename(argv[0]), DEVICE_NAME_PTMX);
|
||||||
fprintf(stderr, "\n");
|
fprintf(stderr, "\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user