You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2024/10/29 10:02:14 UTC

(nuttx-apps) branch master updated: netpkt_ethercat.c: fix the description of usage

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new 7dd4b2895 netpkt_ethercat.c: fix the description of usage
7dd4b2895 is described below

commit 7dd4b28950da4fe2e322a7bd0ffd6f21bceb1113
Author: zhanghongyu <zh...@xiaomi.com>
AuthorDate: Tue Oct 29 14:44:00 2024 +0800

    netpkt_ethercat.c: fix the description of usage
    
    the current usage description is incorrect,
    ifname must follow ethercat. The number of transfers can be specified
    only after ifname is specified.
    
    Signed-off-by: zhanghongyu <zh...@xiaomi.com>
---
 examples/netpkt/netpkt_ethercat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/netpkt/netpkt_ethercat.c b/examples/netpkt/netpkt_ethercat.c
index 8899db84c..9d0a17012 100644
--- a/examples/netpkt/netpkt_ethercat.c
+++ b/examples/netpkt/netpkt_ethercat.c
@@ -40,7 +40,7 @@
 
 static void usage(void)
 {
-  printf("usage: netpkt_ethercat <[ifname] <times>>\n");
+  printf("usage: netpkt_ethercat [<ifname> [times]]\n");
 }
 
 /****************************************************************************