aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/atmel_softpack_libraries/usb/device/dfu/dfu_driver.c
diff options
context:
space:
mode:
authorKévin Redon <kredon@sysmocom.de>2019-12-11 16:44:02 +0100
committerKévin Redon <kredon@sysmocom.de>2019-12-11 16:58:07 +0100
commit75a5f224c0bb76c4965ae60be08392379810cc35 (patch)
tree69cc49359e002941d7c77c41bd7d8c243f25251c /firmware/atmel_softpack_libraries/usb/device/dfu/dfu_driver.c
parent198c3fb21b3daa0cc21165a511b9b9eb0cc7105b (diff)
minor: improve trace output
the USB trace now respects the global setting. the verbosity is also decreased, not showing USB activity unless debugging. this also saves some space. the reset cause is now printed. the strings increase the bootloader size, but it already exceeded the 16 kB limit when trace level is set to info. Change-Id: I9ba08d4bb4f188f6e7a202ea86acb7a42a2054f3
Diffstat (limited to 'firmware/atmel_softpack_libraries/usb/device/dfu/dfu_driver.c')
-rw-r--r--firmware/atmel_softpack_libraries/usb/device/dfu/dfu_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/atmel_softpack_libraries/usb/device/dfu/dfu_driver.c b/firmware/atmel_softpack_libraries/usb/device/dfu/dfu_driver.c
index e95c67b..1cca7ab 100644
--- a/firmware/atmel_softpack_libraries/usb/device/dfu/dfu_driver.c
+++ b/firmware/atmel_softpack_libraries/usb/device/dfu/dfu_driver.c
@@ -85,7 +85,7 @@ static void __dfufunc handle_getstate(void)
{
uint8_t u8 = g_dfu->state;
- TRACE_DEBUG("handle_getstate(%u)\n\r", g_dfu->state);
+ TRACE_DEBUG("handle_getstate(%ld)\n\r", g_dfu->state);
USBD_Write(0, (char *)&u8, sizeof(u8), NULL, 0);
}