Skip to content

Commit 7460bf4

Browse files
tobluxsmfrench
authored andcommitted
smb: client: Use str_yes_no() helper function
Remove hard-coded strings by using the str_yes_no() helper function. Signed-off-by: Thorsten Blum <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent f69b018 commit 7460bf4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

fs/smb/client/dfs_cache.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ static int dfscache_proc_show(struct seq_file *m, void *v)
173173
"cache entry: path=%s,type=%s,ttl=%d,etime=%ld,hdr_flags=0x%x,ref_flags=0x%x,interlink=%s,path_consumed=%d,expired=%s\n",
174174
ce->path, ce->srvtype == DFS_TYPE_ROOT ? "root" : "link",
175175
ce->ttl, ce->etime.tv_nsec, ce->hdr_flags, ce->ref_flags,
176-
DFS_INTERLINK(ce->hdr_flags) ? "yes" : "no",
177-
ce->path_consumed, cache_entry_expired(ce) ? "yes" : "no");
176+
str_yes_no(DFS_INTERLINK(ce->hdr_flags)),
177+
ce->path_consumed, str_yes_no(cache_entry_expired(ce)));
178178

179179
list_for_each_entry(t, &ce->tlist, list) {
180180
seq_printf(m, " %s%s\n",
@@ -242,9 +242,9 @@ static inline void dump_ce(const struct cache_entry *ce)
242242
ce->srvtype == DFS_TYPE_ROOT ? "root" : "link", ce->ttl,
243243
ce->etime.tv_nsec,
244244
ce->hdr_flags, ce->ref_flags,
245-
DFS_INTERLINK(ce->hdr_flags) ? "yes" : "no",
245+
str_yes_no(DFS_INTERLINK(ce->hdr_flags)),
246246
ce->path_consumed,
247-
cache_entry_expired(ce) ? "yes" : "no");
247+
str_yes_no(cache_entry_expired(ce)));
248248
dump_tgts(ce);
249249
}
250250

0 commit comments

Comments
 (0)