From nobody Tue Nov 26 05:30:17 2024 Received: from out-179.mta1.migadu.com (out-179.mta1.migadu.com [95.215.58.179]) (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 37EE91974F4 for ; Mon, 21 Oct 2024 10:01:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.179 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729504905; cv=none; b=cS8CGLVWIMZjl5Bv3VpOlofccYaUCYjyA/zzgZ7Cdgjzr8MYqZWuyT/YiPQgvpKVgBQd+jfbTv/HXGRc542JadqMdRSJbMSa+V4mQ6xgo3Igl50TZxAS0Ql9WcCXdP2GUHLOwIvUrQVGHMpuw7Rkm2JEx0MXAmVp0UbzYkwhXtc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729504905; c=relaxed/simple; bh=9463fSkV7FqBg+ae6ErrihpOEctWELQJ3N8F+ouU/p0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=t02kkDV7UbDm2wyd2WEqfwed6kyRuCs3s+MqILiEgb6kwDLyctNIHfpDf9v9y4xua7AlGu+3h8Sx7BKYXFMKaMXhVre7a12hH8bOUJwDVgrGgOZKEiDtDuAj9w2FP4kKt58rorufh5ahZdRYo8fGWX/ERjZA4CLU7eAdCTY318I= 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=wcO654DQ; arc=none smtp.client-ip=95.215.58.179 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="wcO654DQ" 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=1729504896; 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=a/kh6MtV+hVG1cOKRS4IyBRlKmLHbveTOAvSOev07Ow=; b=wcO654DQyUKwfP2odIDZ/2nEAO146Bt/Quj3qqq43uzveMlPrSSZg/TCnlIat8XRH6GpnF Cz8WYtJDUgzd5qCnzCTkEilHgZlmhyQKAZ/wnDzyVZ3FB31C+Lv0CjGzJNSsBaaUEyvJ9D MyxcgEECmsO8lCIOJ4JxTu8Bj8X5zqc= From: Thorsten Blum To: "Theodore Ts'o" , Andreas Dilger Cc: Thorsten Blum , linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ext4: Use str_yes_no() helper function Date: Mon, 21 Oct 2024 12:00:57 +0200 Message-ID: <20241021100056.5521-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/ext4/mballoc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index d73e38323879..4d8e82cb90fd 100644 --- a/fs/ext4/mballoc.c +++ b/fs/ext4/mballoc.c @@ -5711,7 +5711,7 @@ static void ext4_mb_show_ac(struct ext4_allocation_co= ntext *ac) (unsigned long)ac->ac_b_ex.fe_logical, (int)ac->ac_criteria); mb_debug(sb, "%u found", ac->ac_found); - mb_debug(sb, "used pa: %s, ", ac->ac_pa ? "yes" : "no"); + mb_debug(sb, "used pa: %s, ", str_yes_no(ac->ac_pa)); if (ac->ac_pa) mb_debug(sb, "pa_type %s\n", ac->ac_pa->pa_type =3D=3D MB_GROUP_PA ? "group pa" : "inode pa"); @@ -6056,7 +6056,7 @@ static bool ext4_mb_discard_preallocations_should_ret= ry(struct super_block *sb, } =20 out_dbg: - mb_debug(sb, "freed %d, retry ? %s\n", freed, ret ? "yes" : "no"); + mb_debug(sb, "freed %d, retry ? %s\n", freed, str_yes_no(ret)); return ret; } =20 --=20 2.47.0