From: Thorsten Blum Date: Mon, 9 Dec 2024 11:07:09 +0000 (+0100) Subject: cifs: Use str_yes_no() helper in cifs_ses_add_channel() X-Git-Tag: v6.13-rc3~17^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8676c4dfae5bea2582f9a999fd7463e3c79a3412;p=thirdparty%2Fkernel%2Flinux.git cifs: Use str_yes_no() helper in cifs_ses_add_channel() Remove hard-coded strings by using the str_yes_no() helper function. Signed-off-by: Thorsten Blum Signed-off-by: Steve French --- diff --git a/fs/smb/client/sess.c b/fs/smb/client/sess.c index 0bb77f9ec6861..3306fb6551368 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); /*