stm32: Don't use %lu or %lx for formatting, use just %u or %x.
On this 32-bit arch there's no need to use the long version of the format specifier. It's only there to appease the compiler which checks the type of the args passed to printf. Removing the "l" saves a bit of code space.
This commit is contained in:
@@ -1459,7 +1459,7 @@ void timer_irq_handler(uint tim_id) {
|
||||
if (unhandled != 0) {
|
||||
__HAL_TIM_DISABLE_IT(&tim->tim, unhandled);
|
||||
__HAL_TIM_CLEAR_IT(&tim->tim, unhandled);
|
||||
printf("Unhandled interrupt SR=0x%02lx (now disabled)\n", unhandled);
|
||||
printf("Unhandled interrupt SR=0x%02x (now disabled)\n", (unsigned int)unhandled);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user