kernel/signal.c: convert printk(KERN_<LEVEL> ...) to pr_<level>(...)
authorWang Xiaoqiang <wangxq10@lzu.edu.cn>
Mon, 23 May 2016 23:23:59 +0000 (16:23 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 24 May 2016 00:04:14 +0000 (17:04 -0700)
Use pr_<level> instead of printk(KERN_<LEVEL> ).

Signed-off-by: Wang Xiaoqiang <wangxq10@lzu.edu.cn>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/signal.c

index ab122a2cee417e806d002fb8eed27756b1e89dcf..96e9bc40667fd708837e4cfcccc0f0d2a72ee74e 100644 (file)
@@ -224,7 +224,7 @@ static inline void print_dropped_signal(int sig)
        if (!__ratelimit(&ratelimit_state))
                return;
 
-       printk(KERN_INFO "%s/%d: reached RLIMIT_SIGPENDING, dropped signal %d\n",
+       pr_info("%s/%d: reached RLIMIT_SIGPENDING, dropped signal %d\n",
                                current->comm, current->pid, sig);
 }
 
@@ -1089,10 +1089,10 @@ static int send_signal(int sig, struct siginfo *info, struct task_struct *t,
 static void print_fatal_signal(int signr)
 {
        struct pt_regs *regs = signal_pt_regs();
-       printk(KERN_INFO "potentially unexpected fatal signal %d.\n", signr);
+       pr_info("potentially unexpected fatal signal %d.\n", signr);
 
 #if defined(__i386__) && !defined(__arch_um__)
-       printk(KERN_INFO "code at %08lx: ", regs->ip);
+       pr_info("code at %08lx: ", regs->ip);
        {
                int i;
                for (i = 0; i < 16; i++) {
@@ -1100,10 +1100,10 @@ static void print_fatal_signal(int signr)
 
                        if (get_user(insn, (unsigned char *)(regs->ip + i)))
                                break;
-                       printk(KERN_CONT "%02x ", insn);
+                       pr_cont("%02x ", insn);
                }
        }
-       printk(KERN_CONT "\n");
+       pr_cont("\n");
 #endif
        preempt_disable();
        show_regs(regs);