diff options
Diffstat (limited to 'drivers/s390/net/netiucv.c')
-rw-r--r-- | drivers/s390/net/netiucv.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/s390/net/netiucv.c b/drivers/s390/net/netiucv.c index 279ad504ec3c..9b333fcf1a4c 100644 --- a/drivers/s390/net/netiucv.c +++ b/drivers/s390/net/netiucv.c | |||
@@ -105,15 +105,9 @@ MODULE_DESCRIPTION ("Linux for S/390 IUCV network driver"); | |||
105 | 105 | ||
106 | DECLARE_PER_CPU(char[256], iucv_dbf_txt_buf); | 106 | DECLARE_PER_CPU(char[256], iucv_dbf_txt_buf); |
107 | 107 | ||
108 | /* Allow to sort out low debug levels early to avoid wasted sprints */ | ||
109 | static inline int iucv_dbf_passes(debug_info_t *dbf_grp, int level) | ||
110 | { | ||
111 | return (level <= dbf_grp->level); | ||
112 | } | ||
113 | |||
114 | #define IUCV_DBF_TEXT_(name, level, text...) \ | 108 | #define IUCV_DBF_TEXT_(name, level, text...) \ |
115 | do { \ | 109 | do { \ |
116 | if (iucv_dbf_passes(iucv_dbf_##name, level)) { \ | 110 | if (debug_level_enabled(iucv_dbf_##name, level)) { \ |
117 | char* __buf = get_cpu_var(iucv_dbf_txt_buf); \ | 111 | char* __buf = get_cpu_var(iucv_dbf_txt_buf); \ |
118 | sprintf(__buf, text); \ | 112 | sprintf(__buf, text); \ |
119 | debug_text_event(iucv_dbf_##name, level, __buf); \ | 113 | debug_text_event(iucv_dbf_##name, level, __buf); \ |