Commit 303fa9e3 authored by Cornelia Huck's avatar Cornelia Huck Committed by Martin Schwidefsky

[S390] cio: Make CIO_* macros safe if dbfs are not available.

Signed-off-by: default avatarCornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent e556bbbd
...@@ -23,6 +23,8 @@ extern debug_info_t *cio_debug_crw_id; ...@@ -23,6 +23,8 @@ extern debug_info_t *cio_debug_crw_id;
static inline void static inline void
CIO_HEX_EVENT(int level, void *data, int length) CIO_HEX_EVENT(int level, void *data, int length)
{ {
if (unlikely(!cio_debug_trace_id))
return;
while (length > 0) { while (length > 0) {
debug_event(cio_debug_trace_id, level, data, length); debug_event(cio_debug_trace_id, level, data, length);
length -= cio_debug_trace_id->buf_size; length -= cio_debug_trace_id->buf_size;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment