[SCSI] ibmvfc: Fix log level filtering
authorBrian King <brking@linux.vnet.ibm.com>
Wed, 29 Oct 2008 13:46:33 +0000 (08:46 -0500)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 29 Dec 2008 17:24:12 +0000 (11:24 -0600)
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>
drivers/scsi/ibmvscsi/ibmvfc.h

index fb3177ab66918382c878fc0289c8bbf4cce9ff95..1d18a4c48a9c27a42caa65c2c0cd180eb3d165e2 100644 (file)
@@ -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)