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 06:32:07 UTC
[incubator-nuttx] 24/28: drivers/wireless/lpwan/sx127x/sx127x.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 5706e3851dbe8b2ab093e1c33d44724e5be6291e
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Wed Nov 25 10:36:35 2020 +0900
drivers/wireless/lpwan/sx127x/sx127x.c: Fix syslog formats
---
drivers/wireless/lpwan/sx127x/sx127x.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/wireless/lpwan/sx127x/sx127x.c b/drivers/wireless/lpwan/sx127x/sx127x.c
index 953d127..991e5c2 100644
--- a/drivers/wireless/lpwan/sx127x/sx127x.c
+++ b/drivers/wireless/lpwan/sx127x/sx127x.c
@@ -24,6 +24,7 @@
#include <nuttx/config.h>
#include <assert.h>
+#include <inttypes.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
@@ -3833,7 +3834,7 @@ static int sx127x_frequency_set(FAR struct sx127x_dev_s *dev, uint32_t freq)
uint32_t frf = 0;
int ret = OK;
- wlinfo("frequency %d->%d\n", dev->freq, freq);
+ wlinfo("frequency %" PRId32 "->%" PRId32 "\n", dev->freq, freq);
if (freq == dev->freq)
{
@@ -4105,7 +4106,7 @@ static int sx127x_calibration(FAR struct sx127x_dev_s *dev, uint32_t freq)
* 434 MHz.
*/
- wlinfo("SX127X calibration for %d\n", freq);
+ wlinfo("SX127X calibration for %" PRId32 "\n", freq);
/* Calibration is supported only in FSK/OOK mode */