Skip to content

Commit

Permalink
parisc: make the log level string for register dumps const
Browse files Browse the repository at this point in the history
Signed-off-by: Rolf Eike Beer <eike-kernel@sf-tec.de>
Signed-off-by: Helge Deller <deller@gmx.de>
  • Loading branch information
Rolf Eike Beer authored and Helge Deller committed Aug 4, 2020
1 parent e72b23d commit e2693ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arch/parisc/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ static int printbinary(char *buf, unsigned long x, int nbits)
lvl, f, (x), (x+3), (r)[(x)+0], (r)[(x)+1], \
(r)[(x)+2], (r)[(x)+3])

static void print_gr(char *level, struct pt_regs *regs)
static void print_gr(const char *level, struct pt_regs *regs)
{
int i;
char buf[64];
Expand All @@ -89,7 +89,7 @@ static void print_gr(char *level, struct pt_regs *regs)
PRINTREGS(level, regs->gr, "r", RFMT, i);
}

static void print_fr(char *level, struct pt_regs *regs)
static void print_fr(const char *level, struct pt_regs *regs)
{
int i;
char buf[64];
Expand Down Expand Up @@ -119,7 +119,7 @@ static void print_fr(char *level, struct pt_regs *regs)
void show_regs(struct pt_regs *regs)
{
int i, user;
char *level;
const char *level;
unsigned long cr30, cr31;

user = user_mode(regs);
Expand Down

0 comments on commit e2693ec

Please sign in to comment.