target: use proper format with uint32_t
Modify the format strings to properly handle uint32_t data types. While there, fix prototype mismatch between header and C file of the function armv7a_l1_d_cache_inval_virt(). Change-Id: I434bd241fa5c38e0c15d22cda2295097050067f5 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: http://openocd.zylin.com/5818 Tested-by: jenkins
This commit is contained in:
@@ -150,7 +150,7 @@ static int mem_ap_read_memory(struct target *target, target_addr_t address,
|
||||
struct mem_ap *mem_ap = target->arch_info;
|
||||
|
||||
LOG_DEBUG("Reading memory at physical address " TARGET_ADDR_FMT
|
||||
"; size %" PRId32 "; count %" PRId32, address, size, count);
|
||||
"; size %" PRIu32 "; count %" PRIu32, address, size, count);
|
||||
|
||||
if (count == 0 || buffer == NULL)
|
||||
return ERROR_COMMAND_SYNTAX_ERROR;
|
||||
@@ -165,7 +165,7 @@ static int mem_ap_write_memory(struct target *target, target_addr_t address,
|
||||
struct mem_ap *mem_ap = target->arch_info;
|
||||
|
||||
LOG_DEBUG("Writing memory at physical address " TARGET_ADDR_FMT
|
||||
"; size %" PRId32 "; count %" PRId32, address, size, count);
|
||||
"; size %" PRIu32 "; count %" PRIu32, address, size, count);
|
||||
|
||||
if (count == 0 || buffer == NULL)
|
||||
return ERROR_COMMAND_SYNTAX_ERROR;
|
||||
|
||||
Reference in New Issue
Block a user