summaryrefslogtreecommitdiff
path: root/cmd/sbc_harness/tusb_log.c
blob: fe2c6881d24e93d87b991e80f0fcb904a1d700bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* sbc_harness/tusb_log.c - Logger for tusb_config.h
 *
 * Copyright (C) 2024-2025  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) {
	log_errorf("%s:%u:%s(): assertion \"%s\" failed",
	           file, line, func,
	           expr);
}