From: Brian King Date: Wed, 29 Oct 2008 13:46:33 +0000 (-0500) Subject: [SCSI] ibmvfc: Fix log level filtering X-Git-Tag: v2.6.29-rc1~555^2~99 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=596891acd774f515c2a43adda9322d6a9b2b51b9;p=linux-2.6-omap-h63xx.git [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 Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/ibmvscsi/ibmvfc.h b/drivers/scsi/ibmvscsi/ibmvfc.h index fb3177ab669..1d18a4c48a9 100644 --- a/drivers/scsi/ibmvscsi/ibmvfc.h +++ b/drivers/scsi/ibmvscsi/ibmvfc.h @@ -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)