mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-22 16:28:32 +03:00
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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user