The branch main has been updated by phk:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=29c6e6e279b3bbab78510ff03922e7fb85f93ee2

commit 29c6e6e279b3bbab78510ff03922e7fb85f93ee2
Author:     Poul-Henning Kamp <p...@freebsd.org>
AuthorDate: 2021-05-12 21:37:00 +0000
Commit:     Poul-Henning Kamp <p...@freebsd.org>
CommitDate: 2021-05-12 21:39:19 +0000

    More refactoring & polishing.
    
    Do not call usage() without telling why.
    
    Extract '-a' mode into a function, and sanitize hexdumping.
    
    Revise manpage to match reality of code.
---
 usr.sbin/i2c/i2c.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr.sbin/i2c/i2c.c b/usr.sbin/i2c/i2c.c
index c862666fc9a7..588aad8592ee 100644
--- a/usr.sbin/i2c/i2c.c
+++ b/usr.sbin/i2c/i2c.c
@@ -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());
_______________________________________________
dev-commits-src-main@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-main
To unsubscribe, send any mail to "dev-commits-src-main-unsubscr...@freebsd.org"

Reply via email to