diff options
author | Marek Vasut <marek.vasut@gmail.com> | 2020-01-10 04:24:59 +0100 |
---|---|---|
committer | Tomas Vanek <vanekt@fbl.cz> | 2020-01-27 09:16:49 +0000 |
commit | ddbd8dcf9115cfd863e07bc1a7e5eb94f6b4372f (patch) | |
tree | ceecd437c5f77a2d158c1f943eb556437da4e6cb | |
parent | 60aaf14837d39393edff0df76e426232e72988f5 (diff) |
flash/nor/nrf5: Fix build error on OSX
The chip->hwid is uint32_t , fix the print format.
This was detected by TravisCI on OSX, where this triggers a build error.
Change-Id: I776a7bb50e396c8fccc24500dec4750190da7982
Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Reviewed-on: http://openocd.zylin.com/5401
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-by: Ilya Kharin <akscram@gmail.com>
-rw-r--r-- | src/flash/nor/nrf5.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nor/nrf5.c b/src/flash/nor/nrf5.c index d923468f..8422589b 100644 --- a/src/flash/nor/nrf5.c +++ b/src/flash/nor/nrf5.c @@ -609,7 +609,7 @@ static int nrf5_info(struct flash_bank *bank, char *buf, int buf_size) variant, &variant[2]); } else { - res = snprintf(buf, buf_size, "nRF51xxx (HWID 0x%04" PRIx16 ")", + res = snprintf(buf, buf_size, "nRF51xxx (HWID 0x%08" PRIx32 ")", chip->hwid); } if (res <= 0) |