Skip to content

Commit 30a597e

Browse files
morimotooupton
authored andcommitted
arm64: kvm: sys_regs: use string choices helper
We can use string choices helper, let's use it. Signed-off-by: Kuninori Morimoto <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Oliver Upton <[email protected]>
1 parent 5152977 commit 30a597e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

arch/arm64/kvm/sys_regs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4475,7 +4475,7 @@ static bool kvm_esr_cp10_id_to_sys64(u64 esr, struct sys_reg_params *params)
44754475
return true;
44764476

44774477
kvm_pr_unimpl("Unhandled cp10 register %s: %u\n",
4478-
params->is_write ? "write" : "read", reg_id);
4478+
str_write_read(params->is_write), reg_id);
44794479
return false;
44804480
}
44814481

arch/arm64/kvm/sys_regs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ inline void print_sys_reg_msg(const struct sys_reg_params *p,
108108
/* Look, we even formatted it for you to paste into the table! */
109109
kvm_pr_unimpl("%pV { Op0(%2u), Op1(%2u), CRn(%2u), CRm(%2u), Op2(%2u), func_%s },\n",
110110
&(struct va_format){ fmt, &va },
111-
p->Op0, p->Op1, p->CRn, p->CRm, p->Op2, p->is_write ? "write" : "read");
111+
p->Op0, p->Op1, p->CRn, p->CRm, p->Op2, str_write_read(p->is_write));
112112
va_end(va);
113113
}
114114

0 commit comments

Comments
 (0)