summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Schwebel <r.schwebel@pengutronix.de>2005-03-16 15:31:50 +0000
committerRobert Schwebel <r.schwebel@pengutronix.de>2005-03-16 15:31:50 +0000
commit69952e15d16902a8524bdd4c5610bc13c1316bb9 (patch)
treecba3ac07fe8a485c5ad2e0f3c8fd22178a7a9581
parent3d84d6d6313abd8ff0e6b047497f154640d25534 (diff)
downloadcanutils-69952e15d16902a8524bdd4c5610bc13c1316bb9.tar.gz
added help text
git-svn-id: https://iocaste.extern.pengutronix.de/svn/canutils/trunks/canutils-1.0-trunks@10 5fd5a299-6ef2-0310-aa18-8b01d7c39d8c
-rw-r--r--canecho.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/canecho.c b/canecho.c
index 72f84b8..a9ee504 100644
--- a/canecho.c
+++ b/canecho.c
@@ -20,7 +20,10 @@ static int running = 1;
void print_usage(char *prg)
{
- fprintf(stderr, "Usage: %s [can-interface]\n", prg);
+ fprintf(stderr, "Usage: %s [can-interface] [Options]\n", prg);
+ fprintf(stderr, "Options: -f <family> (default PF_CAN = %d)\n", PF_CAN);
+ fprintf(stderr, " -t <type> (default SOCK_RAW = %d)\n", SOCK_RAW);
+ fprintf(stderr, " -p <proto> (default CAN_PROTO_RAW = %d)\n", CAN_PROTO_RAW);
}
void sigterm(int signo)