From 24cd8ca4ee1ea08526eb82e6c122870c86da5603 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Tue, 19 Nov 2024 21:20:13 -0700 Subject: Add libmisc/log.h to remove stdio.h --- cmd/sbc_harness/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cmd/sbc_harness/main.c') diff --git a/cmd/sbc_harness/main.c b/cmd/sbc_harness/main.c index 17d32cf..23195b3 100644 --- a/cmd/sbc_harness/main.c +++ b/cmd/sbc_harness/main.c @@ -5,7 +5,6 @@ */ #include /* libc: for strlen() */ -#include /* libc: for printf() */ #include /* pico-sdk:pico_stdlib: for stdio_uart_init() */ #include /* pico-sdk:hardware_flash: for flash_get_unique_id() */ @@ -17,6 +16,9 @@ #include #include +#define LOG_NAME MAIN +#include + #include "usb_keyboard.h" COROUTINE hello_world_cr(void *_chan) { @@ -27,7 +29,7 @@ COROUTINE hello_world_cr(void *_chan) { for (size_t i = 0;; i = (i+1) % strlen(msg)) { int result = usb_keyboard_rpc_send_req(chan, (uint32_t)msg[i]); if (result < 1) { - printf("error!\n"); + errorf("error sending rune U+%d", (uint32_t)msg[i]); break; } } -- cgit v1.2.3-2-g168b