Skip to content

Commit dea8838

Browse files
tobluxMarc Zyngier
authored andcommitted
KVM: arm64: vgic: Use str_enabled_disabled() in vgic_v3_probe()
Remove hard-coded strings by using the str_enabled_disabled() helper function. Suggested-by: Christophe JAILLET <[email protected]> Signed-off-by: Thorsten Blum <[email protected]> Reviewed-by: Oliver Upton <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Marc Zyngier <[email protected]>
1 parent 38f9e4b commit dea8838

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

arch/arm64/kvm/vgic/vgic-v3.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include <linux/kstrtox.h>
77
#include <linux/kvm.h>
88
#include <linux/kvm_host.h>
9+
#include <linux/string_choices.h>
910
#include <kvm/arm_vgic.h>
1011
#include <asm/kvm_hyp.h>
1112
#include <asm/kvm_mmu.h>
@@ -663,9 +664,9 @@ int vgic_v3_probe(const struct gic_kvm_info *info)
663664
if (info->has_v4) {
664665
kvm_vgic_global_state.has_gicv4 = gicv4_enable;
665666
kvm_vgic_global_state.has_gicv4_1 = info->has_v4_1 && gicv4_enable;
666-
kvm_info("GICv4%s support %sabled\n",
667+
kvm_info("GICv4%s support %s\n",
667668
kvm_vgic_global_state.has_gicv4_1 ? ".1" : "",
668-
gicv4_enable ? "en" : "dis");
669+
str_enabled_disabled(gicv4_enable));
669670
}
670671

671672
kvm_vgic_global_state.vcpu_base = 0;

0 commit comments

Comments
 (0)