From patchwork Sun Oct 27 22:23:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thorsten Blum X-Patchwork-Id: 13852748 Received: from out-183.mta0.migadu.com (out-183.mta0.migadu.com [91.218.175.183]) (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 6632B44384 for ; Sun, 27 Oct 2024 22:23:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.183 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730067821; cv=none; b=V8AC4fv7uZtECJI8f2MC+xSQyujWcllURSYNs5RcjoALwE58XfB971meE4Xcbc6jIa1OMHk9QJ1AWWawdAwSQ/Hm2pMNy2Zr3On0ei5e+0/dHjU+2Ys6PQOFIMNPY/GizvegW8dhhVjcIobChenbX+f4SbuHk5TA5P5oQ1FQE6I= 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.183 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-cifs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT 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, if (iface->sockaddr.ss_family == 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); /*