diff mbox series

[v2,1/2] multipathd: use condlog level for setscheduler error message

Message ID 20240302003730.782685-2-bmarzins@redhat.com (mailing list archive)
State Not Applicable, archived
Delegated to: christophe varoqui
Headers show
Series make multipathd scheduling configurable | expand

Commit Message

Benjamin Marzinski March 2, 2024, 12:37 a.m. UTC
condlog uses its own log levels, so LOG_WARNING makes no sense. It
actually translates to a message sent at the LOG_DEBUG level.

Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
---
 multipathd/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/multipathd/main.c b/multipathd/main.c
index 6193e691..85ac540f 100644
--- a/multipathd/main.c
+++ b/multipathd/main.c
@@ -3178,7 +3178,7 @@  setscheduler (void)
 	res = sched_setscheduler (0, SCHED_RR, &sched_param);
 
 	if (res == -1)
-		condlog(LOG_WARNING, "Could not set SCHED_RR at priority 99");
+		condlog(2, "Could not set SCHED_RR at priority 99");
 	return;
 }