• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3  * Copyright (c) 2023 Huawei Device Co., Ltd.
4  */
5 
6 #ifndef _CODE_SIGN_LOG_H
7 #define _CODE_SIGN_LOG_H
8 
9 #define CODE_SIGN_TAG "code_sign_kernel"
10 #define CODE_SIGN_DEBUG_TAG  "D"
11 #define CODE_SIGN_INFO_TAG  "I"
12 #define CODE_SIGN_ERROR_TAG "E"
13 #define CODE_SIGN_WARN_TAG "W"
14 
15 #define code_sign_log_debug(fmt, args...) pr_debug("[%s/%s]%s: " fmt "\n", \
16 	CODE_SIGN_DEBUG_TAG, CODE_SIGN_TAG, __func__, ##args)
17 
18 #define code_sign_log_info(fmt, args...) pr_info("[%s/%s]%s: " fmt "\n", \
19 	CODE_SIGN_INFO_TAG, CODE_SIGN_TAG, __func__, ##args)
20 
21 #define code_sign_log_error(fmt, args...) pr_err("[%s/%s]%s: " fmt "\n", \
22 	CODE_SIGN_ERROR_TAG, CODE_SIGN_TAG, __func__, ##args)
23 
24 #define code_sign_log_warn(fmt, args...) pr_warn("[%s/%s]%s: " fmt "\n", \
25 	CODE_SIGN_WARN_TAG, CODE_SIGN_TAG, __func__, ##args)
26 
27 #endif /* _CODE_SIGN_LOG_H */