summaryrefslogtreecommitdiffstats
path: root/fs/smb
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2024-12-09 12:07:09 +0100
committerSteve French <stfrench@microsoft.com>2024-12-11 03:47:37 +0100
commit8676c4dfae5bea2582f9a999fd7463e3c79a3412 (patch)
tree43b6988a3fdf970d98c9d8c77f20719625a358df /fs/smb
parentcifs: Fix rmdir failure due to ongoing I/O on deleted file (diff)
downloadlinux-8676c4dfae5bea2582f9a999fd7463e3c79a3412.tar.xz
linux-8676c4dfae5bea2582f9a999fd7463e3c79a3412.zip
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 <thorsten.blum@linux.dev> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/smb')
-rw-r--r--fs/smb/client/sess.c4
1 files 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);
/*