Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

powerpc: Use str_enabled_disabled() helper function

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

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://patch.msgid.link/20241027222219.1173-2-thorsten.blum@linux.dev

authored by

Thorsten Blum and committed by
Michael Ellerman
19e0a70e f1c774ba

+3 -2
+3 -2
arch/powerpc/kernel/secure_boot.c
··· 5 5 */ 6 6 #include <linux/types.h> 7 7 #include <linux/of.h> 8 + #include <linux/string_choices.h> 8 9 #include <asm/secure_boot.h> 9 10 10 11 static struct device_node *get_ppc_fw_sb_node(void) ··· 39 38 of_node_put(node); 40 39 41 40 out: 42 - pr_info("Secure boot mode %s\n", enabled ? "enabled" : "disabled"); 41 + pr_info("Secure boot mode %s\n", str_enabled_disabled(enabled)); 43 42 44 43 return enabled; 45 44 } ··· 63 62 of_node_put(node); 64 63 65 64 out: 66 - pr_info("Trusted boot mode %s\n", enabled ? "enabled" : "disabled"); 65 + pr_info("Trusted boot mode %s\n", str_enabled_disabled(enabled)); 67 66 68 67 return enabled; 69 68 }