|
From: <du...@ma...> - 2009-06-21 05:16:27
|
Author: duane
Date: 2009-06-21 05:16:22 +0200 (Sun, 21 Jun 2009)
New Revision: 2315
Modified:
trunk/src/target/etb.c
Log:
C99 printf() -Werror fixes
Modified: trunk/src/target/etb.c
===================================================================
--- trunk/src/target/etb.c 2009-06-21 03:16:18 UTC (rev 2314)
+++ trunk/src/target/etb.c 2009-06-21 03:16:22 UTC (rev 2315)
@@ -224,7 +224,7 @@
uint8_t reg_addr = etb_reg->addr & 0x7f;
scan_field_t fields[3];
- LOG_DEBUG("%i", etb_reg->addr);
+ LOG_DEBUG("%i", (int)(etb_reg->addr));
jtag_set_end_state(TAP_IDLE);
etb_scann(etb_reg->etb, 0x0);
@@ -313,7 +313,7 @@
uint8_t reg_addr = etb_reg->addr & 0x7f;
scan_field_t fields[3];
- LOG_DEBUG("%i: 0x%8.8x", etb_reg->addr, value);
+ LOG_DEBUG("%i: 0x%8.8" PRIx32 "", (int)(etb_reg->addr), value);
jtag_set_end_state(TAP_IDLE);
etb_scann(etb_reg->etb, 0x0);
@@ -470,7 +470,7 @@
if (etb_timeout == 0)
{
- LOG_ERROR("AcqComp set but DFEmpty won't go high, ETB status: 0x%x",
+ LOG_ERROR("AcqComp set but DFEmpty won't go high, ETB status: 0x%" PRIx32 "",
buf_get_u32(etb_status_reg->value, 0, etb_status_reg->size));
}
|