rxrpc: Use negative error codes in rxrpc_call struct
[linux-2.6/btrfs-unstable.git] / drivers / s390 / crypto / ap_debug.h
blob78dbff842dae8142714874f1715ab8fa55067417
1 /*
2 * Copyright IBM Corp. 2016
3 * Author(s): Harald Freudenberger <freude@de.ibm.com>
4 */
5 #ifndef AP_DEBUG_H
6 #define AP_DEBUG_H
8 #include <asm/debug.h>
10 #define DBF_ERR 3 /* error conditions */
11 #define DBF_WARN 4 /* warning conditions */
12 #define DBF_INFO 5 /* informational */
13 #define DBF_DEBUG 6 /* for debugging only */
15 #define RC2ERR(rc) ((rc) ? DBF_ERR : DBF_INFO)
16 #define RC2WARN(rc) ((rc) ? DBF_WARN : DBF_INFO)
18 #define DBF_MAX_SPRINTF_ARGS 5
20 #define AP_DBF(...) \
21 debug_sprintf_event(ap_dbf_info, ##__VA_ARGS__)
23 extern debug_info_t *ap_dbf_info;
25 int ap_debug_init(void);
26 void ap_debug_exit(void);
28 #endif /* AP_DEBUG_H */