Linux 4.19-rc7
[linux-2.6/btrfs-unstable.git] / drivers / s390 / crypto / ap_debug.h
blobdc675eb5aef6fe64c579f657867e4ccca8a4a43d
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Copyright IBM Corp. 2016
4 * Author(s): Harald Freudenberger <freude@de.ibm.com>
5 */
6 #ifndef AP_DEBUG_H
7 #define AP_DEBUG_H
9 #include <asm/debug.h>
11 #define DBF_ERR 3 /* error conditions */
12 #define DBF_WARN 4 /* warning conditions */
13 #define DBF_INFO 5 /* informational */
14 #define DBF_DEBUG 6 /* for debugging only */
16 #define RC2ERR(rc) ((rc) ? DBF_ERR : DBF_INFO)
17 #define RC2WARN(rc) ((rc) ? DBF_WARN : DBF_INFO)
19 #define DBF_MAX_SPRINTF_ARGS 5
21 #define AP_DBF(...) \
22 debug_sprintf_event(ap_dbf_info, ##__VA_ARGS__)
24 extern debug_info_t *ap_dbf_info;
26 #endif /* AP_DEBUG_H */