From: Marek Vasut Date: Fri, 10 Jan 2020 03:24:59 +0000 (+0100) Subject: flash/nor/nrf5: Fix build error on OSX X-Git-Tag: v0.11.0-rc1~493 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=ddbd8dcf9115cfd863e07bc1a7e5eb94f6b4372f 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 Reviewed-on: http://openocd.zylin.com/5401 Tested-by: jenkins Reviewed-by: Tomas Vanek Reviewed-by: Ilya Kharin --- diff --git a/src/flash/nor/nrf5.c b/src/flash/nor/nrf5.c index d923468fd7..8422589b84 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)