* [PATCH resend] ide: use printk_once
@ 2009-08-23 18:26 Marcin Slusarz
0 siblings, 0 replies; only message in thread
From: Marcin Slusarz @ 2009-08-23 18:26 UTC (permalink / raw)
To: David S. Miller; +Cc: linux-ide, Bartlomiej Zolnierkiewicz, LKML, Andrew Morton
From: Marcin Slusarz <marcin.slusarz@gmail.com>
Subject: ide: use printk_once
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Acked-by: David S. Miller <davem@davemloft.net>
Cc: linux-ide@vger.kernel.org
Cc: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
diff --git a/drivers/ide/ide-proc.c b/drivers/ide/ide-proc.c
index 3242698..6e58e7e 100644
--- a/drivers/ide/ide-proc.c
+++ b/drivers/ide/ide-proc.c
@@ -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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-08-23 18:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-23 18:26 [PATCH resend] ide: use printk_once Marcin Slusarz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).