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 2020/11/25 13:11:50 UTC

[incubator-nuttx] 13/35: drivers/usbdev/cdcecm.c: Fix an undefined variable in a syslog call

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/incubator-nuttx.git

commit 4b740fa13a4af42b68732bc08006a012fa783422
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Wed Nov 25 16:54:36 2020 +0900

    drivers/usbdev/cdcecm.c: Fix an undefined variable in a syslog call
---
 drivers/usbdev/cdcecm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usbdev/cdcecm.c b/drivers/usbdev/cdcecm.c
index c0a289c..a72ef67 100644
--- a/drivers/usbdev/cdcecm.c
+++ b/drivers/usbdev/cdcecm.c
@@ -1076,7 +1076,7 @@ static int cdcecm_ioctl(FAR struct net_driver_s *dev, int cmd,
       /* Add cases here to support the IOCTL commands */
 
       default:
-        nerr("ERROR: Unrecognized IOCTL command: %d\n", command);
+        nerr("ERROR: Unrecognized IOCTL command: %d\n", cmd);
         return -ENOTTY;  /* Special return value for this case */
     }