Skip to contentSkip to conversation

pata_hpt366: use pr_warning(...) instead of printk(KERN_WARNING ...)

PATCH Superseded Sergei Shtylyov 2 participants 2 messages Jan 10, 2011 libata

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 pata_hpt366: use pr_warning(...) instead of printk(KERN_WARNING ...)

---
The patch is against the recent Linus' tree plus the patches queued by Jeff Garzik in his 'upstream-linus' branch.

 drivers/ata/pata_hpt366.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/ata/pata_hpt366.c +3 -3
Index: linux-2.6/drivers/ata/pata_hpt366.c
===================================================================
@@ -25,7 +25,7 @@
 #include <linux/libata.h>
 
 #define DRV_NAME	"pata_hpt366"
-#define DRV_VERSION	"0.6.9"
+#define DRV_VERSION	"0.6.10"
 
 struct hpt_clock {
 	u8	xfer_mode;
@@ -160,8 +160,8 @@ static int hpt_dma_blacklisted(const str
 
 	while (list[i] != NULL) {
 		if (!strcmp(list[i], model_num)) {
-			printk(KERN_WARNING DRV_NAME ": %s is not supported for %s.\n",
-				modestr, list[i]);
+			pr_warning(DRV_NAME ": %s is not supported for %s.\n",
+				   modestr, list[i]);
 			return 1;
 		}
 		i++;
#1 lore raw

Hello.

Quoted 23 lines · I wrote:

---
The patch is against the recent Linus' tree plus the patches queued by Jeff Garzik in his 'upstream-linus' branch.

 drivers/ata/pata_hpt366.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Index: linux-2.6/drivers/ata/pata_hpt366.c
===================================================================

drivers/ata/pata_hpt366.c +1 -1
@@ -25,7 +25,7 @@
 #include <linux/libata.h>
 
 #define DRV_NAME	"pata_hpt366"
-#define DRV_VERSION	"0.6.9"
+#define DRV_VERSION	"0.6.10"
 
 struct hpt_clock {
 	u8	xfer_mode;

drivers/ata/pata_hpt366.c static int hpt_dma_blacklisted(const str · line 167

Quoted 10 lines
drivers/ata/pata_hpt366.c +2 -2
@@ -160,8 +160,8 @@ static int hpt_dma_blacklisted(const str
 
 	while (list[i] != NULL) {
 		if (!strcmp(list[i], model_num)) {
-			printk(KERN_WARNING DRV_NAME ": %s is not supported for %s.\n",
-				modestr, list[i]);
+			pr_warning(DRV_NAME ": %s is not supported for %s.\n",
+				   modestr, list[i]);
 			return 1;
 		}
 		i++;

Disregard this patch -- I've just realized that the 'pata_hpt37x' driver has
a similar fragment and so should be changed by this patch as well, instead of doing this in patch 2.

WBR, Sergei