[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <36b97f0a-b435-24fa-df2e-f507a4971bd6@gmail.com>
Date: Thu, 29 Jul 2021 11:16:43 -0500
From: Ian Pilcher <arequipeno@...il.com>
To: Valdis Klētnieks <valdis.kletnieks@...edu>
Cc: linux-block@...r.kernel.org, linux-leds@...r.kernel.org,
axboe@...nel.dk, pavel@....cz, linux-kernel@...r.kernel.org,
kernelnewbies@...nelnewbies.org
Subject: Re: [RFC PATCH 3/8] block: Add kernel APIs to create & delete block
device LED triggers
On 7/28/21 10:45 PM, Valdis Klētnieks wrote:
> Is pr_warn() the right level for this stuff? I'd think this sort of pilot error should
> be pr_info() or even pr_debug(), if mentioned at all. pr_warn() would be for
> something like an unexpected situation like trying to blink an LED but failing.
> Simple syntax errors should probably just toss a -EINVAL and return.
Fair point. I'll change it to pr_info(). I'm reluctant to completely
"swallow" the error message, as I've been on the other side as a system
administrator trying to guess at the reason for an error code.
> (Among other things, this allows a userspace script to spam the
> log by simply repeatedly trying to create the same entry)
Only root, and they've got plenty of ways to do that.
Thanks!
--
========================================================================
In Soviet Russia, Google searches you!
========================================================================
Powered by blists - more mailing lists