[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241020104758.49964-2-thorsten.blum@linux.dev>
Date: Sun, 20 Oct 2024 12:47:59 +0200
From: Thorsten Blum <thorsten.blum@...ux.dev>
To: Vinicius Costa Gomes <vinicius.gomes@...el.com>,
Jamal Hadi Salim <jhs@...atatu.com>,
Cong Wang <xiyou.wangcong@...il.com>,
Jiri Pirko <jiri@...nulli.us>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>
Cc: Thorsten Blum <thorsten.blum@...ux.dev>,
netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH net-next] net: sched: etf: Use str_on_off() helper function in etf_init()
Remove hard-coded strings by using the helper function str_on_off().
Signed-off-by: Thorsten Blum <thorsten.blum@...ux.dev>
---
net/sched/sch_etf.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/sched/sch_etf.c b/net/sched/sch_etf.c
index c74d778c32a1..c62730f5df4c 100644
--- a/net/sched/sch_etf.c
+++ b/net/sched/sch_etf.c
@@ -369,8 +369,8 @@ static int etf_init(struct Qdisc *sch, struct nlattr *opt,
pr_debug("delta %d clockid %d offload %s deadline %s\n",
qopt->delta, qopt->clockid,
- OFFLOAD_IS_ON(qopt) ? "on" : "off",
- DEADLINE_MODE_IS_ON(qopt) ? "on" : "off");
+ str_on_off(OFFLOAD_IS_ON(qopt)),
+ str_on_off(DEADLINE_MODE_IS_ON(qopt)));
err = validate_input_params(qopt, extack);
if (err < 0)
--
2.47.0
Powered by blists - more mailing lists