Skip to contentSkip to conversation

softirq: improve preempt count error message

PATCH New Jiri Slaby 1 participant 1 message Sep 9, 2010

lore
Share & tools
lore

Jiri Slaby

author
#0 lore raw

PATCH 1/1 softirq: improve preempt count error message

* add a space after the action
* print function name instead of address of action (%p->%pf)

---
 kernel/softirq.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
kernel/softirq.c +2 -2
index be3ec11..60c864f 100644
@@ -219,8 +219,8 @@ restart:
 			h->action(h);
 			trace_softirq_exit(h, softirq_vec);
 			if (unlikely(prev_count != preempt_count())) {
-				printk(KERN_ERR "huh, entered softirq %td %s %p"
-				       "with preempt_count %08x,"
+				printk(KERN_ERR "huh, entered softirq %td %s "
+				       "%pf with preempt_count %08x,"
 				       " exited with %08x?\n", h - softirq_vec,
 				       softirq_to_name[h - softirq_vec],
 				       h->action, prev_count, preempt_count());
Signature · 1 line
1.7.2.2