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/21 06:24:38 UTC

[incubator-nuttx-apps] branch master updated: wireless/wapi/src/driver_wext.c: Fix a syslog format

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-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new aea1ba9  wireless/wapi/src/driver_wext.c: Fix a syslog format
aea1ba9 is described below

commit aea1ba9f5f63f66e31b4936914362b64859b4181
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Sat Nov 21 11:14:30 2020 +0900

    wireless/wapi/src/driver_wext.c: Fix a syslog format
---
 wireless/wapi/src/driver_wext.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/wireless/wapi/src/driver_wext.c b/wireless/wapi/src/driver_wext.c
index 9249122..cfc508a 100644
--- a/wireless/wapi/src/driver_wext.c
+++ b/wireless/wapi/src/driver_wext.c
@@ -57,6 +57,7 @@
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <errno.h>
+#include <inttypes.h>
 #include <string.h>
 #include <unistd.h>
 #include <stdlib.h>
@@ -364,8 +365,9 @@ static int wpa_driver_wext_process_auth_param(int sockfd,
       errcode = errno;
       if (errcode != EOPNOTSUPP)
         {
-          nerr("ERROR: SIOCSIWAUTH(param %d value 0x%x) failed: %d)",
-               idx, value, errcode);
+          nerr("ERROR: SIOCSIWAUTH(param %d value 0x%" PRIx32
+               ") failed: %d)",
+               idx, *value, errcode);
         }
 
       ret = errcode == EOPNOTSUPP ? -2 : -1;