From 53c7fbd543265cb74207760a31faf69bf76910f8 Mon Sep 17 00:00:00 2001 From: Gareth McMullin Date: Thu, 23 Jun 2016 15:03:00 +1200 Subject: [PATCH] Fixes for verbose debug output. --- src/adiv5.c | 2 +- src/platforms/libftdi/platform.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/adiv5.c b/src/adiv5.c index b8bff89..478f5be 100644 --- a/src/adiv5.c +++ b/src/adiv5.c @@ -295,7 +295,7 @@ static void adiv5_component_probe(ADIv5_AP_t *ap, uint32_t addr) * any components by other designers. */ if ((pidr & ~(PIDR_REV_MASK | PIDR_PN_MASK)) != PIDR_ARM_BITS) { - DEBUG("0x%X: 0x%llX <- does not match ARM JEP-106\n", addr, pidr); + DEBUG("0x%X: 0x%"PRIx64" <- does not match ARM JEP-106\n", addr, pidr); return; } diff --git a/src/platforms/libftdi/platform.h b/src/platforms/libftdi/platform.h index 757e3b5..56064fc 100644 --- a/src/platforms/libftdi/platform.h +++ b/src/platforms/libftdi/platform.h @@ -34,6 +34,8 @@ #define FT2232_VID 0x0403 #define FT2232_PID 0x6010 +#define PLATFORM_HAS_DEBUG + #define SET_RUN_STATE(state) #define SET_IDLE_STATE(state) #define SET_ERROR_STATE(state)