From nobody Tue Nov 26 06:38:53 2024 Received: from out-172.mta0.migadu.com (out-172.mta0.migadu.com [91.218.175.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A024A6AA7 for ; Sun, 20 Oct 2024 10:48:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729421336; cv=none; b=G95K0+UiE1X7s7kLIg/m4hPBCBLdfr/6ytQrTWqGCRCjJpnTBDMQDTyndEAiIjyJrJMYPX/8UuTExbRwD9UwWlormt67N9vm25JjgGmqfw7Jcj9YC99RXRNtgecgkFLpSRcExo750TXkzv0jPvuVSbBifWBIT/WTY2QaJnQLjTo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729421336; c=relaxed/simple; bh=SDKtvxc6BdDUdcS/xBbukopdK/nzFQdN0uyG01misAo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=E3x4uJ0ewT/+KCDiT0fcK5XywarcntYcDY4NTmjjxKN5HRVnfYEUbq9u7WRmCSonT1oONCAHsXk39gqyRtG9WKnQG4VhpD3tOhbB4DlVfYj+YdYrOARavqe932DnkmDVNfbFZcxCTdMzgzmRzqh+qE5Fk/JhcJaoMQqAGBVdvuU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=Phd4w9Dn; arc=none smtp.client-ip=91.218.175.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="Phd4w9Dn" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1729421330; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Q2dkOgqWwR9XgMPnHIscHjM3nX4m78fOsiQRAow4grE=; b=Phd4w9DniHxnwASXS7nn8tbTMKmZkOzAcY55nGas4aTbwgJfiK9e6f75rJ6q9iYZjvkECZ BeY3qwc4C/rWzPXah6PrsBCShSBTZUw3bLyxArqob5tg5D7cDX0ZvFzPPVKNFipDU6OexW u12rwyZ9RgCsupWgP7y8n0zIKe6nkRA= From: Thorsten Blum To: Vinicius Costa Gomes , Jamal Hadi Salim , Cong Wang , Jiri Pirko , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: Thorsten Blum , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next] net: sched: etf: Use str_on_off() helper function in etf_init() Date: Sun, 20 Oct 2024 12:47:59 +0200 Message-ID: <20241020104758.49964-2-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" Remove hard-coded strings by using the helper function str_on_off(). Signed-off-by: Thorsten Blum Acked-by: Vinicius Costa Gomes --- 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 *o= pt, =20 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))); =20 err =3D validate_input_params(qopt, extack); if (err < 0) --=20 2.47.0