• Bartlomiej Zolnierkiewicz's avatar
    [ide] fix /proc/ide/hd?/settings to not spam logs · 4b6eb2e5
    Bartlomiej Zolnierkiewicz authored
    On Thu, 11 Nov 2004 17:10:21 +0100, Jens Axboe <axboe@suse.de> wrote:
    > On Thu, Nov 11 2004, Alan Cox wrote:
    > > > +   printk(KERN_WARNING "Warning: /proc/ide/hd?/settings interface is "
    > > > +                       "obsolete, and will be removed soon!\n");
    > > > +
    > >
    > > The above should be rate limited or on the write case moved to after
    > > the capable() check. A program polling these settings now makes a nasty
    > > noise and wipes the logs. A user can also do it intentionally.
    > 
    > Or just print it once...
    Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
    4b6eb2e5
ide-proc.c 13 KB