From nobody Mon Nov 25 13:16:46 2024 Received: from out-177.mta0.migadu.com (out-177.mta0.migadu.com [91.218.175.177]) (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 5599418EBF for ; Sun, 27 Oct 2024 22:23:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730067821; cv=none; b=SWBcS4msTvR89nDVtTXxOguyULfmoBP8Ws4qNmlqE24SUAsttq2iWL9pFiSqmblwrNfYgG9p2JFeNJS31Pemxjf0oKi3RwZE6c2sBtYAbqkI6RL/EE3+qyod5Sa/csB/QOG0FRZZnfmVNIeHR+ubpS6l5lQpTRxkS4ZXUR7u/DE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730067821; c=relaxed/simple; bh=6Q21XBG/rkegRl0phZ335sIvAzzjFtK5j2o7saAseuo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Tkyl1aXjTyFFGNhkRY+m2s/5au18gQMTiLhyq5a/t0u8TazYIYvsE60pGTR/5gWsLevYS9uI/QuvdZxp5Wk7uO9riDQUTIPGL9FgKAfUfVELY5tmVdvD1/nqCJELOorwSnagawmm/6bTsKZYuvl6rbOjcpHaJkqMRLm4n5NYpjQ= 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=rNX782Pz; arc=none smtp.client-ip=91.218.175.177 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="rNX782Pz" 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=1730067816; 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=fTHpML+cXhXVk5sDOgFNdpjjjYAsXUVhALDoRO9IXDc=; b=rNX782Pzmk+sZ0nAYFFrycSymcoz2IeA67TjC0pSShLd6PBbhg5EwhoGovDumkChmdJEK8 68r6FVdP9kHeZ1wzFr8EfsldlsKnG4LDrrHBwCOHEl2fXAQSUxZWWbcOhWnKKdnXzRS5mz jd/2HOCD8gLRAYbB5I8tNlQ/8gBbvFY= From: Thorsten Blum To: Steve French , Paulo Alcantara , Ronnie Sahlberg , Shyam Prasad N , Tom Talpey , Bharath SM Cc: Thorsten Blum , linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, linux-kernel@vger.kernel.org Subject: [PATCH] cifs: Use str_yes_no() helper in cifs_ses_add_channel() Date: Sun, 27 Oct 2024 23:23:05 +0100 Message-ID: <20241027222304.1270-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 str_yes_no() helper function. Signed-off-by: Thorsten Blum --- fs/smb/client/sess.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/smb/client/sess.c b/fs/smb/client/sess.c index c88e9657f47a..3cd157c2c0a5 100644 --- a/fs/smb/client/sess.c +++ b/fs/smb/client/sess.c @@ -491,11 +491,11 @@ cifs_ses_add_channel(struct cifs_ses *ses, =20 if (iface->sockaddr.ss_family =3D=3D AF_INET) cifs_dbg(FYI, "adding channel to ses %p (speed:%zu bps rdma:%s ip:%pI4)\= n", - ses, iface->speed, iface->rdma_capable ? "yes" : "no", + ses, iface->speed, str_yes_no(iface->rdma_capable), &ipv4->sin_addr); else cifs_dbg(FYI, "adding channel to ses %p (speed:%zu bps rdma:%s ip:%pI6)\= n", - ses, iface->speed, iface->rdma_capable ? "yes" : "no", + ses, iface->speed, str_yes_no(iface->rdma_capable), &ipv6->sin6_addr); =20 /* --=20 2.47.0