From patchwork Mon Dec 9 11:07:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thorsten Blum X-Patchwork-Id: 13899335 Received: from out-174.mta1.migadu.com (out-174.mta1.migadu.com [95.215.58.174]) (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 78DF421B1BA for ; Mon, 9 Dec 2024 11:07:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733742444; cv=none; b=gpAA5n4yy48Y5DyGKrmMrgX31oySuE76AvGKuGHKwaAm6GOFFe5BlY/O61Ob3ebY6R+VLCh8z0dOsNDe/kxa8GAsK6iEHRBhn97miIjJLHN0XBRxsE0iAAG4BT/8463oFAwJHMt2znMyfkuFSJnVN1wRdGODQ8K4zvgekW78qWE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733742444; c=relaxed/simple; bh=lROEBNsLHx6CvV4nVTBmAWKvm0kcFGCjtz+FSkuFsY0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=l99cfLmwl8+3FREpfjsajkF03kpgG+3GQdpKGTddexDI/XIuGRcd2LNI+El4rp1qiixyd6/QTIgWK2F2FUd+vEBrK/fxFWnYyExsVxw7t2wFvr4tVO47xdA+CrrpQN6ju8KvL+ir5kjM27z1+cJfinc1Rgr6IqwYVdZ7MEylTLI= 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=IVYqKEFg; arc=none smtp.client-ip=95.215.58.174 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="IVYqKEFg" 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=1733742439; 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=nPGSPQpFctHvf0+LoH0mY0kXUyMu8TlAiFauSH5Xvow=; b=IVYqKEFgsr+Zubh98hhyagrFFP91trz946HxrvfVJVQCnKU1ZwNsO1a5CO051DJ4fboPrZ teaXRp6Totj5VqYfeVZYxWTwquSi9101UNddHQKAvmKNjlcIVRhurn0q4WzRXfn5mS1kKN X8aZZ9Mnz4yhj0Y8fmDhWo7Ra0ZPs+A= 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: [RESEND PATCH] cifs: Use str_yes_no() helper in cifs_ses_add_channel() Date: Mon, 9 Dec 2024 12:07:09 +0100 Message-ID: <20241209110708.40045-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 0bb77f9ec686..3306fb655136 100644 --- a/fs/smb/client/sess.c +++ b/fs/smb/client/sess.c @@ -488,11 +488,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); /*