From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-186.mta0.migadu.com (out-186.mta0.migadu.com [91.218.175.186]) (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 D7866381C4 for ; Mon, 30 Dec 2024 21:42:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.186 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735594945; cv=none; b=JynIqjU4x0ojVqc1nYI7TXWvHdGXMuYLPjAfmQLwmXuI3aaKpo5lzRBN2r+CNdEisY7bf+hN2x22wE9pQwMvcVFf2yIxoHn0ddMdiX9B878tBLzmq30Wp+m9kLhSMEa9+yn0UtwOwQ9qXlsvoFpj4VlpDwKxR0p28J4z33jeNE8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735594945; c=relaxed/simple; bh=6hRfuxiLbezKwzGJS3UHJIfoFgCaeQf5XMjylF4Wx9A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=q9Og9F1fIOYSazJhUtEt+wTeZ/ZQken4Kh0EPORzAGNw+8SdXy9KLdOoCfv1lobOXnAsQEVRNnkxDXg7JkLdnf1NNFsVkvNLJzpKvuXY6Qb+gdkc1xlOAi1FGQI98Q/RL3xF2ij1N9ZkPpVWWuexSXTPdAPbx8SjMoyu/GgH/MQ= 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=MsIcUxuu; arc=none smtp.client-ip=91.218.175.186 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="MsIcUxuu" 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=1735594939; 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=jC14eZi7B7sA2R+7iUTvGWkYRvEG9XHIhaxsc9wJrVo=; b=MsIcUxuugptvGWjSequdFimi+Rz8rudiAPVo2eglSn9T3N9rRd6MqxSsR0vnTLZ6ZABz/o iW9NtJNNFLZohgSeJw+294aSeHgAMwiWtlaLFW2Yl9P7aePNfcZ1UjddwoqMokFOvoI782 m7QZNO39G0F/gF5rk5sB06jnKNeXg3k= From: Thorsten Blum To: Michael Ellerman , Nicholas Piggin , Christophe Leroy , Naveen N Rao , Madhavan Srinivasan , Hari Bathini , Sourabh Jain , "Ritesh Harjani (IBM)" , Bjorn Helgaas , "Aneesh Kumar K.V (IBM)" Cc: Thorsten Blum , Baoquan He , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH] fadump: Use str_yes_no() helper in fadump_show_config() Date: Mon, 30 Dec 2024 22:41:40 +0100 Message-ID: <20241230214142.952706-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: 8bit X-Migadu-Flow: FLOW_OUT Remove hard-coded strings by using the str_yes_no() helper function. Signed-off-by: Thorsten Blum --- arch/powerpc/kernel/fadump.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/kernel/fadump.c b/arch/powerpc/kernel/fadump.c index 4b371c738213..8c531533dd3e 100644 --- a/arch/powerpc/kernel/fadump.c +++ b/arch/powerpc/kernel/fadump.c @@ -289,10 +289,8 @@ static void __init fadump_show_config(void) if (!fw_dump.fadump_supported) return; - pr_debug("Fadump enabled : %s\n", - (fw_dump.fadump_enabled ? "yes" : "no")); - pr_debug("Dump Active : %s\n", - (fw_dump.dump_active ? "yes" : "no")); + pr_debug("Fadump enabled : %s\n", str_yes_no(fw_dump.fadump_enabled)); + pr_debug("Dump Active : %s\n", str_yes_no(fw_dump.dump_active)); pr_debug("Dump section sizes:\n"); pr_debug(" CPU state data size: %lx\n", fw_dump.cpu_state_data_size); pr_debug(" HPTE region size : %lx\n", fw_dump.hpte_region_size); -- 2.47.1