Skip to content

Commit

Permalink
More refactoring & polishing.
Browse files Browse the repository at this point in the history
Do not call usage() without telling why.

Extract '-a' mode into a function, and sanitize hexdumping.

Revise manpage to match reality of code.
  • Loading branch information
bsdphk committed May 12, 2021
1 parent 5ab41ff commit 29c6e6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr.sbin/i2c/i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ usage(const char *msg)
if (msg != NULL)
fprintf(stderr, "%s\n", msg);
fprintf(stderr, "usage: %s -a addr [-f device] [-d [r|w]] [-o offset] "
"[-w [0|8|16]] [-c count] [-m [tr|ss|rs|no]] [-b] [-v]\n",
"[-w [0|8|16|16LE|16BE]] [-c count] [-m [tr|ss|rs|no]] [-b] [-v]\n",
getprogname());
fprintf(stderr, " %s -s [-f device] [-n skip_addr] -v\n",
getprogname());
Expand Down

0 comments on commit 29c6e6e

Please sign in to comment.