Skip to content

Commit

Permalink
[S390] cio: Make CIO_* macros safe if dbfs are not available.
Browse files Browse the repository at this point in the history
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
  • Loading branch information
Cornelia Huck authored and Martin Schwidefsky committed Jul 27, 2007
1 parent e556bbb commit 303fa9e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/s390/cio/cio_debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ extern debug_info_t *cio_debug_crw_id;
static inline void
CIO_HEX_EVENT(int level, void *data, int length)
{
if (unlikely(!cio_debug_trace_id))
return;
while (length > 0) {
debug_event(cio_debug_trace_id, level, data, length);
length -= cio_debug_trace_id->buf_size;
Expand Down

0 comments on commit 303fa9e

Please sign in to comment.