diff --git a/src/edmfd/main.cc b/src/edmfd/main.cc index f61d773..dfbb357 100644 --- a/src/edmfd/main.cc +++ b/src/edmfd/main.cc @@ -68,11 +68,11 @@ void set_leds_callback(uint32_t leds) { button_leds[i] = desired; } } - log::trace("set leds to %02x %02x", button_leds[0], button_leds[1]); + log::trace("set leds %02x %02x", button_leds[0], button_leds[1]); } void test_irq_handler(unsigned pin, uint32_t events) { - log::debug("irq received on %d", pin); + log::debug("irq on %d", pin); irq_handler(pin, events); uint32_t leds = 0; for (unsigned i = 0; i < button_group_count; ++i) @@ -160,7 +160,6 @@ int main(void) // Let timers and iterrupts handle most things while (1) { tud_task(); // tinyusb device task - sleep_ms(1); } } diff --git a/src/logging/log.cc b/src/logging/log.cc index bebb99c..95e40b9 100644 --- a/src/logging/log.cc +++ b/src/logging/log.cc @@ -15,7 +15,7 @@ namespace { } void log(level lv, const format &fmt, ...) { - printf("%20s:%-3d: %5s ", fmt.loc.file_name(), fmt.loc.line(), level_strings[int(lv)]); + printf("%10s:%-3d: %5s ", fmt.loc.file_name(), fmt.loc.line(), level_strings[int(lv)]); va_list args; va_start(args, fmt); vprintf(fmt.fmt, args);