diff options
Diffstat (limited to 'cmd/sbc_harness/tusb_log.c')
-rw-r--r-- | cmd/sbc_harness/tusb_log.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/cmd/sbc_harness/tusb_log.c b/cmd/sbc_harness/tusb_log.c new file mode 100644 index 0000000..4c6b7df --- /dev/null +++ b/cmd/sbc_harness/tusb_log.c @@ -0,0 +1,15 @@ +/* sbc_harness/tusb_log.c - Logger for tusb_config.h + * + * Copyright (C) 2024 Luke T. Shumaker <lukeshu@lukeshu.com> + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + +#define LOG_NAME TINY_USB +#include <libmisc/log.h> + +void _libmisc_tu_mess_failed(const char *expr, + const char *file, unsigned int line, const char *func) { + errorf("%s:%u:%s(): assertion \"%s\" failed", + file, line, func, + expr); +} |