[SCSI] ibmvfc: Fix log level filtering

The ibmvfc log level filtering logic was reversed. The log_level scsi
host parameter should result in more verbose logs when log_level is
larger, not smaller.

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
This commit is contained in:
Brian King 2008-10-29 08:46:33 -05:00 коммит произвёл James Bottomley
Родитель fa195afe4a
Коммит 596891acd7
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -700,7 +700,7 @@ struct ibmvfc_host {
#define ibmvfc_log(vhost, level, ...) \
do { \
if (level >= (vhost)->log_level) \
if ((vhost)->log_level >= level) \
dev_err((vhost)->dev, ##__VA_ARGS__); \
} while (0)