mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
ipmi: Use dev_warn_ratelimited() for incorrect message warnings
During BMC firmware upgrades on live systems, the ipmi_msghandler generates excessive "BMC returned incorrect response" warnings while the BMC is temporarily offline. This can flood system logs in large deployments. Replace dev_warn() with dev_warn_ratelimited() to throttle these warnings and prevent log spam during BMC maintenance operations. Signed-off-by: Breno Leitao <leitao@debian.org> Message-ID: <20250710-ipmi_ratelimit-v1-1-6d417015ebe9@debian.org> Signed-off-by: Corey Minyard <corey@minyard.net>
This commit is contained in:
parent
f6f9760320
commit
ec50ec378e
@ -4607,10 +4607,10 @@ return_unspecified:
|
|||||||
* The NetFN and Command in the response is not even
|
* The NetFN and Command in the response is not even
|
||||||
* marginally correct.
|
* marginally correct.
|
||||||
*/
|
*/
|
||||||
dev_warn(intf->si_dev,
|
dev_warn_ratelimited(intf->si_dev,
|
||||||
"BMC returned incorrect response, expected netfn %x cmd %x, got netfn %x cmd %x\n",
|
"BMC returned incorrect response, expected netfn %x cmd %x, got netfn %x cmd %x\n",
|
||||||
(msg->data[0] >> 2) | 1, msg->data[1],
|
(msg->data[0] >> 2) | 1, msg->data[1],
|
||||||
msg->rsp[0] >> 2, msg->rsp[1]);
|
msg->rsp[0] >> 2, msg->rsp[1]);
|
||||||
|
|
||||||
goto return_unspecified;
|
goto return_unspecified;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user