Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags   |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) #ifndef __API_DEBUG_INTERNAL_H__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) #define __API_DEBUG_INTERNAL_H__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) #include "debug.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) #define __pr(func, fmt, ...)	\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) do {				\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) 	if ((func))		\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 		(func)("libapi: " fmt, ##__VA_ARGS__); \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) } while (0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) extern libapi_print_fn_t __pr_warn;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) extern libapi_print_fn_t __pr_info;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) extern libapi_print_fn_t __pr_debug;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) #define pr_warn(fmt, ...)	__pr(__pr_warn, fmt, ##__VA_ARGS__)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) #define pr_info(fmt, ...)	__pr(__pr_info, fmt, ##__VA_ARGS__)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) #define pr_debug(fmt, ...)	__pr(__pr_debug, fmt, ##__VA_ARGS__)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) #endif /* __API_DEBUG_INTERNAL_H__ */