Skip to content

Commit 05fa8d4

Browse files
xen0nchenhuacai
authored andcommitted
LoongArch: Fix format of CSR lines during show_regs()
Use uppercase CSR names throughout for consistency with the manual wording, and right-align the keys. The "CSR" part is inferrable from context, hence dropped for more horizontal space. Signed-off-by: WANG Xuerui <git@xen0n.name> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
1 parent 863b379 commit 05fa8d4

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

arch/loongarch/kernel/traps.c

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -193,16 +193,12 @@ static void __show_regs(const struct pt_regs *regs)
193193
}
194194
#undef GPR_FIELD
195195

196-
/*
197-
* Saved csr registers
198-
*/
199-
printk("CSR crmd: %08lx ", regs->csr_crmd);
200-
printk("CSR prmd: %08lx ", regs->csr_prmd);
201-
printk("CSR euen: %08lx ", regs->csr_euen);
202-
printk("CSR ecfg: %08lx ", regs->csr_ecfg);
203-
printk("CSR estat: %08lx ", regs->csr_estat);
204-
205-
pr_cont("\n");
196+
/* Print saved important CSRs */
197+
printk(" CRMD: %08lx\n", regs->csr_crmd);
198+
printk(" PRMD: %08lx\n", regs->csr_prmd);
199+
printk(" EUEN: %08lx\n", regs->csr_euen);
200+
printk(" ECFG: %08lx\n", regs->csr_ecfg);
201+
printk("ESTAT: %08lx\n", regs->csr_estat);
206202

207203
exccode = ((regs->csr_estat) & CSR_ESTAT_EXC) >> CSR_ESTAT_EXC_SHIFT;
208204
excsubcode = ((regs->csr_estat) & CSR_ESTAT_ESUBCODE) >> CSR_ESTAT_ESUBCODE_SHIFT;

0 commit comments

Comments
 (0)