From f6f507ab3cd6a24ba9bc2f36a68e98306013e185 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Redon?= Date: Thu, 7 Feb 2019 17:55:24 +0100 Subject: [PATCH] minor: make debug output only verbose in info level the longer output is to fast and often incomplete. the shorter version is enough to view the progress when not debugging. Change-Id: I97bb84da68d1f3bc14fb7c05400edf1748f55460 --- firmware/apps/dfu/main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/firmware/apps/dfu/main.c b/firmware/apps/dfu/main.c index 271fbec8..97cd074d 100644 --- a/firmware/apps/dfu/main.c +++ b/firmware/apps/dfu/main.c @@ -66,7 +66,11 @@ int USBDFU_handle_dnload(uint8_t altif, unsigned int offset, WDT_Restart(WDT); } - printf("dnload(altif=%u, offset=%u, len=%u)\n\r", altif, offset, len); +#if TRACE_LEVEL >= TRACE_LEVEL_INFO + TRACE_INFO("dnload(altif=%u, offset=%u, len=%u)\n\r", altif, offset, len); +#else + printf("DL off=%u\n\r", offset); +#endif #ifdef PINS_LEDS PIO_Clear(&pinsLeds[LED_NUM_RED]);