All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch 1/1] ide: use printk_once
@ 2009-09-18 19:49 akpm
  2009-09-22 23:29 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: akpm @ 2009-09-18 19:49 UTC (permalink / raw)
  To: davem; +Cc: linux-ide, akpm, marcin.slusarz, bzolnier

From: Marcin Slusarz <marcin.slusarz@gmail.com>

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Acked-by: David S. Miller <davem@davemloft.net>
Cc: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/ide/ide-proc.c |    8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff -puN drivers/ide/ide-proc.c~ide-use-printk_once drivers/ide/ide-proc.c
--- a/drivers/ide/ide-proc.c~ide-use-printk_once
+++ a/drivers/ide/ide-proc.c
@@ -273,14 +273,8 @@ static const struct ide_proc_devset ide_
 
 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 ide_settings_proc_show(struct seq_file *m, void *v)
_

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [patch 1/1] ide: use printk_once
  2009-09-18 19:49 [patch 1/1] ide: use printk_once akpm
@ 2009-09-22 23:29 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2009-09-22 23:29 UTC (permalink / raw)
  To: akpm; +Cc: linux-ide, marcin.slusarz, bzolnier

From: akpm@linux-foundation.org
Date: Fri, 18 Sep 2009 12:49:48 -0700

> From: Marcin Slusarz <marcin.slusarz@gmail.com>
> 
> Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
> Acked-by: David S. Miller <davem@davemloft.net>
> Cc: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

Applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-09-22 23:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-18 19:49 [patch 1/1] ide: use printk_once akpm
2009-09-22 23:29 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.