From nobody Sat Nov 23 15:43:24 2024 Received: from out-182.mta0.migadu.com (out-182.mta0.migadu.com [91.218.175.182]) (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 DCE7F1CD1E5 for ; Tue, 12 Nov 2024 10:59:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731409159; cv=none; b=nRNeJa0quEieCmV43DCBzVZVHrFscjkKsYa9faobxZz/PlhrOkkSt1yWt1TX0MpBzmgdcYiZTw8tO8v5bBXlZ9xvI9SkSrFWnOKqbXlMhYZJQShaSUdIkaiOvnJ3H62aVsK329A0F6HKg3ZMS7cVaGbsY12RWcsPhSgzImCrWOE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731409159; c=relaxed/simple; bh=JZrQqai739fl3FlLxmWvgPe2WqRUGYdV53/fwcZtUZg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=e0FnTS0lNQ8j3Oy7yHaIgvcSYtkypA9iRYFwvYXWr4PG2mSu1xP4RU6SlKYB9BmVHshcOHoBOuh3nLgqdxu3y7aYEdGiB91F8/GJ/uG3a38ujyOlzWZpZCtrMzTrFUadHzqYICMQCYbMBmx0o9qKEmdkogvi4kgQ8/jiTKkvxww= 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=V/QowCEE; arc=none smtp.client-ip=91.218.175.182 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="V/QowCEE" 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=1731409154; 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=UxtS3i6mC2mIaktpQVjbvFWs72IlB4Imlh8S3FMp3b8=; b=V/QowCEEXm+yn7+E+DFRMd7QUl84/GOVvtmbzmFXRrL0N+B1lI1TNZVt/iG6maoeHjYE5n 3zKlAsdpMs581VyefZs5IJHk3uj0Q8ddYttonOfOO4eKfkdpHc/yGdHKjfVw9Z+fFfHjUD UGmA/jr0mT/y4Koo9zP2jRzre8ekZtw= 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] smb: client: Use str_yes_no() helper function Date: Tue, 12 Nov 2024 11:58:38 +0100 Message-ID: <20241112105837.166575-2-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" Remove hard-coded strings by using the str_yes_no() helper function. Signed-off-by: Thorsten Blum --- fs/smb/client/dfs_cache.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/smb/client/dfs_cache.c b/fs/smb/client/dfs_cache.c index 110f03df012a..00820f57b434 100644 --- a/fs/smb/client/dfs_cache.c +++ b/fs/smb/client/dfs_cache.c @@ -173,8 +173,8 @@ static int dfscache_proc_show(struct seq_file *m, void = *v) "cache entry: path=3D%s,type=3D%s,ttl=3D%d,etime=3D%ld,hdr_flags=3D= 0x%x,ref_flags=3D0x%x,interlink=3D%s,path_consumed=3D%d,expired=3D%s\n", ce->path, ce->srvtype =3D=3D DFS_TYPE_ROOT ? "root" : "link", ce->ttl, ce->etime.tv_nsec, ce->hdr_flags, ce->ref_flags, - DFS_INTERLINK(ce->hdr_flags) ? "yes" : "no", - ce->path_consumed, cache_entry_expired(ce) ? "yes" : "no"); + str_yes_no(DFS_INTERLINK(ce->hdr_flags)), + ce->path_consumed, str_yes_no(cache_entry_expired(ce))); =20 list_for_each_entry(t, &ce->tlist, list) { seq_printf(m, " %s%s\n", @@ -242,9 +242,9 @@ static inline void dump_ce(const struct cache_entry *ce) ce->srvtype =3D=3D DFS_TYPE_ROOT ? "root" : "link", ce->ttl, ce->etime.tv_nsec, ce->hdr_flags, ce->ref_flags, - DFS_INTERLINK(ce->hdr_flags) ? "yes" : "no", + str_yes_no(DFS_INTERLINK(ce->hdr_flags)), ce->path_consumed, - cache_entry_expired(ce) ? "yes" : "no"); + str_yes_no(cache_entry_expired(ce))); dump_tgts(ce); } =20 --=20 2.47.0