Skip to contentSkip to conversation

fadump: Use str_yes_no() helper in fadump_show_config()

PATCH RESEND In review Thorsten Blum 2 participants 3 messages Feb 9, 2025 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 fadump: Use str_yes_no() helper in fadump_show_config()

Remove hard-coded strings by using the str_yes_no() helper function.

---
 arch/powerpc/kernel/fadump.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
arch/powerpc/kernel/fadump.c +2 -4
index 4b371c738213..8c531533dd3e 100644
@@ -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);
Signature · 1 line
2.48.1
#1 lore raw

Hi,

Le 09/02/2025 à 09:17, Thorsten Blum a écrit :

Quoted 5 lines

Remove hard-coded strings by using the str_yes_no() helper function.

Any reason for resending ? Your patch is not lost, see https://patchwork.ozlabs.org/project/linuxppc-dev/list/?submitter=89400

If there is a reason that you don't want to put in the commit message, just put it here below under the ---

Quoted 21 lines
---
  arch/powerpc/kernel/fadump.c | 6 ++----
  1 file changed, 2 insertions(+), 4 deletions(-)
arch/powerpc/kernel/fadump.c +2 -4
index 4b371c738213..8c531533dd3e 100644
@@ -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 lore raw
Quoted 7 lines · Christophe Leroy
Quoted 4 lines · Thorsten Blum

Remove hard-coded strings by using the str_yes_no() helper function.

Any reason for resending ? Your patch is not lost, see https://patchwork.ozlabs.org/project/linuxppc-dev/list/?submitter=89400

Ah sorry, I missed this. It's sometimes hard to know the status of a patch when it's not in next yet.

Thanks,
Thorsten