aboutsummaryrefslogtreecommitdiff
path: root/src/target/ls1_sap.c
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2020-08-18 18:56:27 +0200
committerAntonio Borneo <borneo.antonio@gmail.com>2020-09-05 17:12:39 +0100
commit99add6227fe0a3be536f9b83ff6aa7dd63a8d2dc (patch)
tree03e6675ccaf3fbd8f86dfd9922a20574c8ca41cc /src/target/ls1_sap.c
parente66593f8242d49dd05f6b9c4a5121fa466a158aa (diff)
downloadriscv-openocd-99add6227fe0a3be536f9b83ff6aa7dd63a8d2dc.zip
riscv-openocd-99add6227fe0a3be536f9b83ff6aa7dd63a8d2dc.tar.gz
riscv-openocd-99add6227fe0a3be536f9b83ff6aa7dd63a8d2dc.tar.bz2
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
Diffstat (limited to 'src/target/ls1_sap.c')
-rw-r--r--src/target/ls1_sap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target/ls1_sap.c b/src/target/ls1_sap.c
index 330042f..5e12188 100644
--- a/src/target/ls1_sap.c
+++ b/src/target/ls1_sap.c
@@ -182,7 +182,7 @@ static int ls1_sap_read_memory(struct target *target, target_addr_t address,
uint32_t size, uint32_t count, uint8_t *buffer)
{
LOG_DEBUG("Reading memory at physical address 0x%" TARGET_PRIxADDR
- "; size %" PRId32 "; count %" PRId32, address, size, count);
+ "; size %" PRIu32 "; count %" PRIu32, address, size, count);
if (count == 0 || buffer == NULL)
return ERROR_COMMAND_SYNTAX_ERROR;
@@ -204,7 +204,7 @@ static int ls1_sap_write_memory(struct target *target, target_addr_t address,
const uint8_t *buffer)
{
LOG_DEBUG("Writing memory at physical address 0x%" TARGET_PRIxADDR
- "; size %" PRId32 "; count %" PRId32, address, size, count);
+ "; size %" PRIu32 "; count %" PRIu32, address, size, count);
if (count == 0 || buffer == NULL)