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) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) #ifndef __SELFTEST_TIMENS_LOG_H__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) #define __SELFTEST_TIMENS_LOG_H__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) #define pr_msg(fmt, lvl, ...)						\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) 	ksft_print_msg("[%s] (%s:%d)\t" fmt "\n",			\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) 			lvl, __FILE__, __LINE__, ##__VA_ARGS__)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #define pr_p(func, fmt, ...)	func(fmt ": %m", ##__VA_ARGS__)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #define pr_err(fmt, ...)						\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 	({								\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 		ksft_test_result_error(fmt "\n", ##__VA_ARGS__);		\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 		-1;							\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 	})
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) #define pr_fail(fmt, ...)					\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 	({							\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 		ksft_test_result_fail(fmt, ##__VA_ARGS__);	\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 		-1;						\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 	})
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) #define pr_perror(fmt, ...)	pr_p(pr_err, fmt, ##__VA_ARGS__)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) #endif