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-next>] [day] [month] [year] [list]
Message-Id: <1442128512-32578-1-git-send-email-mnfhuang@gmail.com>
Date:	Sun, 13 Sep 2015 15:15:12 +0800
From:	Minfei Huang <mnfhuang@...il.com>
To:	akpm@...ux-foundation.org, dyoung@...hat.com, ebiederm@...ssion.com
Cc:	kexec@...ts.infradead.org, linux-kernel@...r.kernel.org,
	mhuang@...hat.com, Minfei Huang <mnfhuang@...il.com>
Subject: [PATCH] kexec: Add prefix "kexec" to output message

kexec output message misses the prefix "kexec", when Dave Young split
the kexec code. To keep the same format, add the prefix "kexec" to
output message.

Following is the format of output message now.
[  140.290795] SYSC_kexec_load: hello, world

Ideally, the format of output message likes below.
[  140.291534] kexec: sanity_check_segment_list: hello, world

Signed-off-by: Minfei Huang <mnfhuang@...il.com>
---
 kernel/kexec.c      | 2 ++
 kernel/kexec_file.c | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/kernel/kexec.c b/kernel/kexec.c
index 4c5edc3..15351ba 100644
--- a/kernel/kexec.c
+++ b/kernel/kexec.c
@@ -6,6 +6,8 @@
  * Version 2.  See the file COPYING for more details.
  */
 
+#define pr_fmt(fmt)	"kexec: " fmt
+
 #include <linux/capability.h>
 #include <linux/mm.h>
 #include <linux/file.h>
diff --git a/kernel/kexec_file.c b/kernel/kexec_file.c
index 6a9a3f2..b1ad01b 100644
--- a/kernel/kexec_file.c
+++ b/kernel/kexec_file.c
@@ -9,6 +9,8 @@
  * Version 2.  See the file COPYING for more details.
  */
 
+#define pr_fmt(fmt)	"kexec: " fmt
+
 #include <linux/capability.h>
 #include <linux/mm.h>
 #include <linux/file.h>
-- 
2.4.0

--
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