mirror of https://gitee.com/openkylin/linux.git
ide: use printk_once
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com> Acked-by: David S. Miller <davem@davemloft.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
7fa07729e4
commit
01f1afaf7b
|
@ -273,14 +273,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 ide_settings_proc_show(struct seq_file *m, void *v)
|
||||
|
|
Loading…
Reference in New Issue