summaryrefslogtreecommitdiff
path: root/arch/loongarch
diff options
context:
space:
mode:
authorWANG Xuerui <git@xen0n.name>2023-05-01 12:19:10 +0300
committerHuacai Chen <chenhuacai@loongson.cn>2023-05-01 12:19:10 +0300
commit05fa8d4977d727cf41294ea09b4a5085cba4ad54 (patch)
tree323aa5e73220192ad9884be55d1b66ee68315d14 /arch/loongarch
parent863b3795efae6458dbc24f03add50c575cf4fbd2 (diff)
downloadlinux-05fa8d4977d727cf41294ea09b4a5085cba4ad54.tar.xz
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>
Diffstat (limited to 'arch/loongarch')
-rw-r--r--arch/loongarch/kernel/traps.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/arch/loongarch/kernel/traps.c b/arch/loongarch/kernel/traps.c
index ab08548315b8..434a7717face 100644
--- a/arch/loongarch/kernel/traps.c
+++ b/arch/loongarch/kernel/traps.c
@@ -193,16 +193,12 @@ static void __show_regs(const struct pt_regs *regs)
}
#undef GPR_FIELD
- /*
- * Saved csr registers
- */
- printk("CSR crmd: %08lx ", regs->csr_crmd);
- printk("CSR prmd: %08lx ", regs->csr_prmd);
- printk("CSR euen: %08lx ", regs->csr_euen);
- printk("CSR ecfg: %08lx ", regs->csr_ecfg);
- printk("CSR estat: %08lx ", regs->csr_estat);
-
- pr_cont("\n");
+ /* Print saved important CSRs */
+ printk(" CRMD: %08lx\n", regs->csr_crmd);
+ printk(" PRMD: %08lx\n", regs->csr_prmd);
+ printk(" EUEN: %08lx\n", regs->csr_euen);
+ printk(" ECFG: %08lx\n", regs->csr_ecfg);
+ printk("ESTAT: %08lx\n", regs->csr_estat);
exccode = ((regs->csr_estat) & CSR_ESTAT_EXC) >> CSR_ESTAT_EXC_SHIFT;
excsubcode = ((regs->csr_estat) & CSR_ESTAT_ESUBCODE) >> CSR_ESTAT_ESUBCODE_SHIFT;