From nobody Sun Nov 24 14:58:47 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 874B11FE100 for ; Mon, 4 Nov 2024 23:32:48 +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=1730763172; cv=none; b=iIjTy5w616wfLel+xh70cltR2FKW1rNW3vWF4zK60DlTJJ1I/+sJ9Kb+0Cdsc0krIwp4SW79RN8+dnvUzfoDlESLnBiLenlrFJuFqBKcdF4ydzuTuu+FoIhA83hWg6BUVHysEeTamBAfxVsP8cJOzvvrFeEyevdGQces92MehFk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730763172; c=relaxed/simple; bh=9463fSkV7FqBg+ae6ErrihpOEctWELQJ3N8F+ouU/p0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=H36DGtpfE8b2htlBYv56huTdbOE+Rr0I9IbcMdC/T7GsCRV8fV3VCCb10SjtM4OIdOkh12p79L09emjKCXAmyPL7IS5NTWSDFya02p8ToqmieIwHfliMS2GPDQ1mnVyy5QVyvJtIl/keF0tv1UgyLff6+NI1mjn7oJniwBOlBUk= 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=sjXOMbjP; 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="sjXOMbjP" 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=1730763165; 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=sjXOMbjPXgACjwacXYWPccp9XqS4qKDNg2s5+VxgmC98Y+SvY/6dYlbTPqsEW0VaPRk9Sr rK1acSrMWjDWNTqRE1x+kyZ81q0fLfmk+MSuOVZDeeR9L7pBHMvUmp0/qeukRpKo1RNolp ZdNo2bXGygicj80U0mqezJAx3Vf+SS0= From: Thorsten Blum To: "Theodore Ts'o" , Andreas Dilger Cc: Thorsten Blum , linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RESEND PATCH] ext4: Use str_yes_no() helper function Date: Tue, 5 Nov 2024 00:32:05 +0100 Message-ID: <20241104233204.7771-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 Reviewed-by: Jan Kara --- 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