Skip to content

Commit d167706

Browse files
Sebastian Andrzej SiewiorPeter Zijlstra
authored andcommitted
lib/dump_stack: Use preempt_model_str()
Use preempt_model_str() to print the current preemption model. Use pr_warn() instead of printk() to pass a loglevel. This makes it part of generic WARN/ BUG traces. Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 8bdc5da commit d167706

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/dump_stack.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ void __init dump_stack_set_arch_desc(const char *fmt, ...)
5454
*/
5555
void dump_stack_print_info(const char *log_lvl)
5656
{
57-
printk("%sCPU: %d UID: %u PID: %d Comm: %.20s %s%s %s %.*s" BUILD_ID_FMT "\n",
57+
printk("%sCPU: %d UID: %u PID: %d Comm: %.20s %s%s %s %.*s %s " BUILD_ID_FMT "\n",
5858
log_lvl, raw_smp_processor_id(),
5959
__kuid_val(current_real_cred()->euid),
6060
current->pid, current->comm,
6161
kexec_crash_loaded() ? "Kdump: loaded " : "",
6262
print_tainted(),
6363
init_utsname()->release,
6464
(int)strcspn(init_utsname()->version, " "),
65-
init_utsname()->version, BUILD_ID_VAL);
65+
init_utsname()->version, preempt_model_str(), BUILD_ID_VAL);
6666

6767
if (get_taint())
6868
printk("%s%s\n", log_lvl, print_tainted_verbose());

0 commit comments

Comments
 (0)