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>
This commit is contained in:
parent
60aaf14837
commit
ddbd8dcf91
|
@ -609,7 +609,7 @@ static int nrf5_info(struct flash_bank *bank, char *buf, int buf_size)
|
||||||
variant, &variant[2]);
|
variant, &variant[2]);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
res = snprintf(buf, buf_size, "nRF51xxx (HWID 0x%04" PRIx16 ")",
|
res = snprintf(buf, buf_size, "nRF51xxx (HWID 0x%08" PRIx32 ")",
|
||||||
chip->hwid);
|
chip->hwid);
|
||||||
}
|
}
|
||||||
if (res <= 0)
|
if (res <= 0)
|
||||||
|
|
Loading…
Reference in New Issue