diff options
Diffstat (limited to 'drivers/scsi/ibmvscsi/ibmvfc.h')
-rw-r--r-- | drivers/scsi/ibmvscsi/ibmvfc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/scsi/ibmvscsi/ibmvfc.h b/drivers/scsi/ibmvscsi/ibmvfc.h index ca1dcf7a7568..4dac3560c1a4 100644 --- a/drivers/scsi/ibmvscsi/ibmvfc.h +++ b/drivers/scsi/ibmvscsi/ibmvfc.h | |||
@@ -707,6 +707,12 @@ struct ibmvfc_host { | |||
707 | #define tgt_err(t, fmt, ...) \ | 707 | #define tgt_err(t, fmt, ...) \ |
708 | dev_err((t)->vhost->dev, "%llX: " fmt, (t)->scsi_id, ##__VA_ARGS__) | 708 | dev_err((t)->vhost->dev, "%llX: " fmt, (t)->scsi_id, ##__VA_ARGS__) |
709 | 709 | ||
710 | #define tgt_log(t, level, fmt, ...) \ | ||
711 | do { \ | ||
712 | if ((t)->vhost->log_level >= level) \ | ||
713 | tgt_err(t, fmt, ##__VA_ARGS__); \ | ||
714 | } while (0) | ||
715 | |||
710 | #define ibmvfc_dbg(vhost, ...) \ | 716 | #define ibmvfc_dbg(vhost, ...) \ |
711 | DBG_CMD(dev_info((vhost)->dev, ##__VA_ARGS__)) | 717 | DBG_CMD(dev_info((vhost)->dev, ##__VA_ARGS__)) |
712 | 718 | ||