Skip to content

Commit

Permalink
Revert "sh: add loglvl to printk_address()"
Browse files Browse the repository at this point in the history
This reverts commit 2deebe4.

printk_address() is always used as a continuation of the previous
logging, hence it should not include a log level.

Signed-off-by: Geert Uytterhoeven <[email protected]>
Signed-off-by: Rich Felker <[email protected]>
  • Loading branch information
geertu authored and Rich Felker committed Aug 15, 2020
1 parent 845d915 commit fd722f2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions arch/sh/include/asm/kdebug.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ enum die_val {
};

/* arch/sh/kernel/dumpstack.c */
extern void printk_address(unsigned long address, int reliable,
const char *loglvl);
extern void printk_address(unsigned long address, int reliable);
extern void dump_mem(const char *str, const char *loglvl,
unsigned long bottom, unsigned long top);

Expand Down
6 changes: 3 additions & 3 deletions arch/sh/kernel/dumpstack.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ void dump_mem(const char *str, const char *loglvl,
}
}

void printk_address(unsigned long address, int reliable, const char *loglvl)
void printk_address(unsigned long address, int reliable)
{
printk("%s [<%p>] %s%pS\n", loglvl, (void *) address,
printk(" [<%p>] %s%pS\n", (void *) address,
reliable ? "" : "? ", (void *) address);
}

Expand Down Expand Up @@ -118,7 +118,7 @@ static int print_trace_stack(void *data, char *name)
*/
static void print_trace_address(void *data, unsigned long addr, int reliable)
{
printk_address(addr, reliable, (char *)data);
printk_address(addr, reliable);
}

static const struct stacktrace_ops print_trace_ops = {
Expand Down
2 changes: 1 addition & 1 deletion arch/sh/mm/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ show_fault_oops(struct pt_regs *regs, unsigned long address)
: "paging request",
address);
pr_alert("PC:");
printk_address(regs->pc, 1, KERN_ALERT);
printk_address(regs->pc, 1);

show_pte(NULL, address);
}
Expand Down

0 comments on commit fd722f2

Please sign in to comment.