lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1348938460-20919-3-git-send-email-geert@linux-m68k.org>
Date:	Sat, 29 Sep 2012 19:07:39 +0200
From:	Geert Uytterhoeven <geert@...ux-m68k.org>
To:	Richard Weinberger <richard@....at>
Cc:	user-mode-linux-devel@...ts.sourceforge.net,
	linux-kernel@...r.kernel.org, x86@...nel.org,
	Geert Uytterhoeven <geert@...ux-m68k.org>
Subject: [PATCH 3/4] arch/x86/um: Drop UM_ prefix from printk() level specifiers

Since commit 9429ec96c2718c0d1e3317cf60a87a0405223814 ("um: Preinclude
include/linux/kern_levels.h") the non-prefixed printk() level specifiers
are usable for the user parts of UML.

Signed-off-by: Geert Uytterhoeven <geert@...ux-m68k.org>
---
 arch/x86/um/bugs_32.c            |   14 +++++++-------
 arch/x86/um/os-Linux/registers.c |    2 +-
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/arch/x86/um/bugs_32.c b/arch/x86/um/bugs_32.c
index 17d88cf..d2bccc5 100644
--- a/arch/x86/um/bugs_32.c
+++ b/arch/x86/um/bugs_32.c
@@ -23,7 +23,7 @@ void arch_check_bugs(void)
 {
 	struct sigaction old, new;
 
-	printk(UM_KERN_INFO "Checking for host processor cmov support...");
+	printk(KERN_INFO "Checking for host processor cmov support...");
 	new.sa_handler = cmov_sigill_test_handler;
 
 	/* Make sure that SIGILL is enabled after the handler longjmps back */
@@ -34,9 +34,9 @@ void arch_check_bugs(void)
 	if (setjmp(cmov_test_return) == 0) {
 		unsigned long foo = 0;
 		__asm__ __volatile__("cmovz %0, %1" : "=r" (foo) : "0" (foo));
-		printk(UM_KERN_CONT "Yes\n");
+		printk(KERN_CONT "Yes\n");
 	} else
-		printk(UM_KERN_CONT "No\n");
+		printk(KERN_CONT "No\n");
 
 	sigaction(SIGILL, &old, &new);
 }
@@ -53,7 +53,7 @@ void arch_examine_signal(int sig, struct uml_pt_regs *regs)
 		return;
 
 	if (copy_from_user_proc(tmp, (void *) UPT_IP(regs), 2)) {
-		printk(UM_KERN_ERR "SIGILL in init, could not read "
+		printk(KERN_ERR "SIGILL in init, could not read "
 		       "instructions!\n");
 		return;
 	}
@@ -62,13 +62,13 @@ void arch_examine_signal(int sig, struct uml_pt_regs *regs)
 		return;
 
 	if (host_has_cmov == 0)
-		printk(UM_KERN_ERR "SIGILL caused by cmov, which this "
+		printk(KERN_ERR "SIGILL caused by cmov, which this "
 		       "processor doesn't implement.  Boot a filesystem "
 		       "compiled for older processors");
 	else if (host_has_cmov == 1)
-		printk(UM_KERN_ERR "SIGILL caused by cmov, which this "
+		printk(KERN_ERR "SIGILL caused by cmov, which this "
 		       "processor claims to implement");
 	else
-		printk(UM_KERN_ERR "Bad value for host_has_cmov (%d)",
+		printk(KERN_ERR "Bad value for host_has_cmov (%d)",
 			host_has_cmov);
 }
diff --git a/arch/x86/um/os-Linux/registers.c b/arch/x86/um/os-Linux/registers.c
index 0cdbb86..7719500 100644
--- a/arch/x86/um/os-Linux/registers.c
+++ b/arch/x86/um/os-Linux/registers.c
@@ -106,7 +106,7 @@ unsigned long get_thread_reg(int reg, jmp_buf *buf)
 		return buf[0]->__rbp;
 #endif
 	default:
-		printk(UM_KERN_ERR "get_thread_regs - unknown register %d\n",
+		printk(KERN_ERR "get_thread_regs - unknown register %d\n",
 		       reg);
 		return 0;
 	}
-- 
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ