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/27 11:19:40 UTC
[incubator-nuttx] 33/48: drivers/wireless/gs2200m.c: Fix syslog
formats
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 d6a562e3e166e0099781a01567f609f53d53668a
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Fri Nov 27 13:53:09 2020 +0900
drivers/wireless/gs2200m.c: Fix syslog formats
---
drivers/wireless/gs2200m.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/wireless/gs2200m.c b/drivers/wireless/gs2200m.c
index 6bcce63..4a74b00 100644
--- a/drivers/wireless/gs2200m.c
+++ b/drivers/wireless/gs2200m.c
@@ -49,6 +49,7 @@
#include <nuttx/config.h>
#include <sys/types.h>
+#include <inttypes.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
@@ -2789,7 +2790,7 @@ static int gs2200m_ioctl_iwreq(FAR struct gs2200m_dev_s *dev,
n = sscanf(pkt_dat.msg[2], "%s CHANNEL=%" SCNd32 " %s",
cmd, &res->u.freq.m, cmd2);
ASSERT(3 == n);
- wlinfo("CHANNEL:%d\n", res->u.freq.m);
+ wlinfo("CHANNEL:%" PRId32 "\n", res->u.freq.m);
}
else if (msg->cmd == SIOCGIWSENS)
{
@@ -2828,7 +2829,7 @@ static int gs2200m_ioctl_ifreq(FAR struct gs2200m_dev_s *dev,
bool getreq = false;
int ret = OK;
- wlinfo("+++ start: cmd=%x \n", msg->cmd);
+ wlinfo("+++ start: cmd=%" PRIx32 " \n", msg->cmd);
inaddr = (FAR struct sockaddr_in *)&msg->ifr.ifr_addr;