From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2C4E0C02199 for ; Sun, 9 Feb 2025 08:18:08 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4YrLDt4cjDz2yDT; Sun, 9 Feb 2025 19:18:06 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip="2001:41d0:203:375::b9" ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1739089086; cv=none; b=GnZY4a9XQ1OfRBsMAg58Eo5I3RAIBXOUgAWLERdAqaBQtj7R2K48xuJfW2L2l1od+56wUcD8EY3CEe1OiSz6CZC+78r0aXKMh9pyci368fUP9JUNcwu4gXla1wCiOPRqxQp5bEkBcF4BWFOcNyyT8BcK9C8bagqul/jstHl/yFy9oh5JC9VYLL3idVRax00jcrVVdfw6wrBsIzGV90rSqKddQJTpFXHviLrIMYKCQCX1e5O3Ey3lp4sYSf+ovihMBkyeh4qUuW0KrbNDFZQwpgxcf4avcQIio8FEFWAwm/358CtwHs1PSFjmyIIZ/p59AeLrqkr+UAZ/Pq/XVXR8eQ== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1739089086; c=relaxed/relaxed; bh=IiH2NYlYsxSXLU1sZ46R9u08xGC0tcovZjatzA0NQ/g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=JpaStV1eg1jajd6tEGtJlHT87L53YcZrKj6uS3mwpcCVJsl4Wh/BYiRRVnuRKkTRHHkJSXJHQgf5EKQ/+MtD6boN7UAGPi5CSmTvecutz+rTNj1EjbIAX61/E0bsgCBsPqnjhkpmYf+dxdN71MmTv45l3nlxxxNzDrKdkMmbKToMmNV3yP/tBwFi2DvCSn4XmS9dhUDntBRCPXb1FxoRq9QDVL4Fw7Dq8soPNHz0RstyjQqnngCGGevmANsR0/F4t6i2KJ8MagKDqzWohba3mgWIlqPkhgTUCrkAJPbOdFGwSFein+nAYlcVG3uSuPSgOQbZNxMc2gfGfgKEc1BngQ== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass (client-ip=2001:41d0:203:375::b9; helo=out-185.mta1.migadu.com; envelope-from=thorsten.blum@linux.dev; receiver=lists.ozlabs.org) smtp.mailfrom=linux.dev Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linux.dev (client-ip=2001:41d0:203:375::b9; helo=out-185.mta1.migadu.com; envelope-from=thorsten.blum@linux.dev; receiver=lists.ozlabs.org) Received: from out-185.mta1.migadu.com (out-185.mta1.migadu.com [IPv6:2001:41d0:203:375::b9]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4YrLDl6Lj8z2xs7 for ; Sun, 9 Feb 2025 19:17:59 +1100 (AEDT) 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=1739089051; 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=IiH2NYlYsxSXLU1sZ46R9u08xGC0tcovZjatzA0NQ/g=; b=beA2ZaiO51l+gHGagbiy/5PON6iHcgDUL2hOT4U9nQRs1pDSlEUfvytDoLVV0jN70Am9uk h8sS4Ej53b1rW6aS17PW6xy/OK/bG4alYOo3PTnHR99YN8sn8Y62wddmhExI5mrIaqrnyN tWzymrtgpzZIVp4gUoF9e4tes3cbRmI= From: Thorsten Blum To: Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , Christophe Leroy , Naveen N Rao , Hari Bathini , Sourabh Jain , "Ritesh Harjani (IBM)" , "Aneesh Kumar K.V (IBM)" , Bjorn Helgaas Cc: Thorsten Blum , Baoquan He , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [RESEND PATCH] fadump: Use str_yes_no() helper in fadump_show_config() Date: Sun, 9 Feb 2025 09:17:03 +0100 Message-ID: <20250209081704.2758-2-thorsten.blum@linux.dev> X-Mailing-List: linuxppc-dev@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , 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. Reviewed-by: Sourabh Jain Reviewed-by: Ritesh Harjani (IBM) 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.48.1