Skip to contentSkip to conversation

ide: use printk_once

PATCH RESEND New Marcin Slusarz 1 participant 1 message Aug 23, 2009 libata

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 ide: use printk_once

From: Marcin Slusarz <[email protected]>
Subject: ide: use printk_once

drivers/ide/ide-proc.c +1 -7
index 3242698..6e58e7e 100644
@@ -236,14 +236,8 @@ static const struct ide_proc_devset ide_generic_settings[] = {
 
 static void proc_ide_settings_warn(void)
 {
-	static int warned;
-
-	if (warned)
-		return;
-
-	printk(KERN_WARNING "Warning: /proc/ide/hd?/settings interface is "
+	printk_once(KERN_WARNING "Warning: /proc/ide/hd?/settings interface is "
 			    "obsolete, and will be removed soon!\n");
-	warned = 1;
 }
 
 static int proc_ide_read_settings