arch: Convert formatter strings to use PRI defines
To allow for various libc implementations (like newlib) in which the way various {u}int{8,16,32}_t types are defined vary between both libc implementations and across architectures we need to utilize the PRI defines. Change-Id: Ic4e65db52c8d693228cf80584283d4d06e68b5ad Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
7b9dc107a8
commit
da8bff6b20
2 changed files with 2 additions and 2 deletions
|
@ -54,7 +54,7 @@ int _arc_init(struct device *arg)
|
|||
* we read the value and stick it in shared_mem->arc_start which is
|
||||
* the beginning of the address space at 0xA8000000 */
|
||||
reset_vector = (uint32_t *)RESET_VECTOR;
|
||||
SYS_LOG_DBG("Reset vector address: %x", *reset_vector);
|
||||
SYS_LOG_DBG("Reset vector address: %" PRIx32, *reset_vector);
|
||||
shared_data->arc_start = *reset_vector;
|
||||
shared_data->flags = 0;
|
||||
if (!shared_data->arc_start) {
|
||||
|
|
|
@ -68,7 +68,7 @@ FUNC_NORETURN void _NanoFatalErrorHandler(unsigned int reason,
|
|||
break;
|
||||
}
|
||||
printk("Current thread ID = %p\n"
|
||||
"Faulting instruction address = 0x%x\n",
|
||||
"Faulting instruction address = 0x%" PRIx32 "\n",
|
||||
k_current_get(),
|
||||
pEsf->pc);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue