From nobody Mon Nov 25 12:40:43 2024 Received: from out-183.mta1.migadu.com (out-183.mta1.migadu.com [95.215.58.183]) (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 84C7A18EBF for ; Sun, 27 Oct 2024 22:22:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.183 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730067781; cv=none; b=KwTdjqYqxq1yTW/bAB38aOB5loXb7ty880cZrsJIEVnCfp+kaCGAwA2eggFJld4KNYDPy2BdLIgE5TK07QmgK84qLCo8dI9g+NMaCPkcG43J872++N1MThOos7lFHxumLapJ6qQt3mXmScLnQSuRuzFoNyTDiA8JTMyZv4bWlhQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730067781; c=relaxed/simple; bh=8UfyyG6xJDonQ5Rv58iuez+wmMcZych5O+POYTdUYqo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=sq9RK6Mln3D/8e/BvuCt/gKWXggsRxCMyjGBV5sy9zf1ja6TwnUmBv2Lm5WqKuTZi5vjpfLYpt4JMl6/y/dj6zLySICwm4elix/RhlB1TNMhuXWn30043c6wlZuVHZe7RgypgrNwp7rrMgQSa25KRUxQ947fd5ee1cP93vx64p8= 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=uWijFkqO; arc=none smtp.client-ip=95.215.58.183 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="uWijFkqO" 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=1730067776; 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=sPyEMx1Cix540CPR4LmCJqBqTR/s1Cf9zBXVuWCkKvk=; b=uWijFkqOZALURJnEJ7HQegQOrIjy+GesZoYx1yOWz7w+grl4V1xgKtyXecoxmxUJ9eFyHq A3Hc36K4eBydTZWlw2KBSzRq8lTK9diYYz3aSG7xcPGa3fvrfj1s8mVYIJOeiGZgoStUMo /105F4irNL20nzTkjomy+oHQAAva+0c= From: Thorsten Blum To: Michael Ellerman , Nicholas Piggin , Christophe Leroy , Naveen N Rao , Madhavan Srinivasan , Rob Herring Cc: Thorsten Blum , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH] powerpc: Use str_enabled_disabled() helper function Date: Sun, 27 Oct 2024 23:22:17 +0100 Message-ID: <20241027222219.1173-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_enabled_disabled() helper function. Signed-off-by: Thorsten Blum Reviewed-by: Ritesh Harjani (IBM) --- arch/powerpc/kernel/secure_boot.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/kernel/secure_boot.c b/arch/powerpc/kernel/secure= _boot.c index 9e0efb657f39..3a28795b4ed8 100644 --- a/arch/powerpc/kernel/secure_boot.c +++ b/arch/powerpc/kernel/secure_boot.c @@ -5,6 +5,7 @@ */ #include #include +#include #include =20 static struct device_node *get_ppc_fw_sb_node(void) @@ -38,7 +39,7 @@ bool is_ppc_secureboot_enabled(void) of_node_put(node); =20 out: - pr_info("Secure boot mode %s\n", enabled ? "enabled" : "disabled"); + pr_info("Secure boot mode %s\n", str_enabled_disabled(enabled)); =20 return enabled; } @@ -62,7 +63,7 @@ bool is_ppc_trustedboot_enabled(void) of_node_put(node); =20 out: - pr_info("Trusted boot mode %s\n", enabled ? "enabled" : "disabled"); + pr_info("Trusted boot mode %s\n", str_enabled_disabled(enabled)); =20 return enabled; } --=20 2.47.0