Skip to content

Commit d62cf81

Browse files
akpm00torvalds
authored andcommitted
init/main.c: don't use pr_debug()
Pertially revert commit ea676e8 ("init/main.c: convert to pr_foo()"). Unbeknownst to me, pr_debug() is different from the other pr_foo() levels: pr_debug() is a no-op when DEBUG is not defined. Happily, init/main.c does have a #define DEBUG so we didn't break initcall_debug. But the functioning of initcall_debug should not be dependent upon the presence of that #define DEBUG. Reported-by: Russell King <rmk@arm.linux.org.uk> Cc: Joe Perches <joe@perches.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 3430343 commit d62cf81

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎init/main.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -671,13 +671,13 @@ static int __init_or_module do_one_initcall_debug(initcall_t fn)
671671
unsigned long long duration;
672672
int ret;
673673

674-
pr_debug("calling %pF @ %i\n", fn, task_pid_nr(current));
674+
printk(KERN_DEBUG "calling %pF @ %i\n", fn, task_pid_nr(current));
675675
calltime = ktime_get();
676676
ret = fn();
677677
rettime = ktime_get();
678678
delta = ktime_sub(rettime, calltime);
679679
duration = (unsigned long long) ktime_to_ns(delta) >> 10;
680-
pr_debug("initcall %pF returned %d after %lld usecs\n",
680+
printk(KERN_DEBUG "initcall %pF returned %d after %lld usecs\n",
681681
fn, ret, duration);
682682

683683
return ret;

0 commit comments

Comments
 (0)