From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755218AbbIMQ74 (ORCPT ); Sun, 13 Sep 2015 12:59:56 -0400 Received: from out01.mta.xmission.com ([166.70.13.231]:60029 "EHLO out01.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755127AbbIMQ7y (ORCPT ); Sun, 13 Sep 2015 12:59:54 -0400 From: ebiederm@xmission.com (Eric W. Biederman) To: Minfei Huang Cc: akpm@linux-foundation.org, dyoung@redhat.com, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, mhuang@redhat.com References: <1442128512-32578-1-git-send-email-mnfhuang@gmail.com> Date: Sun, 13 Sep 2015 11:52:41 -0500 In-Reply-To: <1442128512-32578-1-git-send-email-mnfhuang@gmail.com> (Minfei Huang's message of "Sun, 13 Sep 2015 15:15:12 +0800") Message-ID: <87fv2il0rq.fsf@x220.int.ebiederm.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-XM-AID: U2FsdGVkX1+JgflmmphDE4Uq+wHZ48Kj3ZMra3tABsI= X-SA-Exim-Connect-IP: 67.3.201.231 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.0 TVD_RCVD_IP Message was received from an IP address * 0.0 T_TM2_M_HEADER_IN_MSG BODY: No description available. * 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.4999] * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa06 1397; Body=1 Fuz1=1 Fuz2=1] X-Spam-DCC: XMission; sa06 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ;Minfei Huang X-Spam-Relay-Country: X-Spam-Timing: total 375 ms - load_scoreonly_sql: 0.18 (0.0%), signal_user_changed: 6 (1.7%), b_tie_ro: 4.0 (1.1%), parse: 1.41 (0.4%), extract_message_metadata: 4.9 (1.3%), get_uri_detail_list: 1.72 (0.5%), tests_pri_-1000: 4.1 (1.1%), tests_pri_-950: 1.53 (0.4%), tests_pri_-900: 1.15 (0.3%), tests_pri_-400: 20 (5.2%), check_bayes: 19 (4.9%), b_tokenize: 6 (1.5%), b_tok_get_all: 6 (1.6%), b_comp_prob: 1.70 (0.5%), b_tok_touch_all: 2.9 (0.8%), b_finish: 0.74 (0.2%), tests_pri_0: 316 (84.2%), tests_pri_500: 7 (1.9%), rewrite_mail: 0.00 (0.0%) Subject: Re: [PATCH] kexec: Add prefix "kexec" to output message X-Spam-Flag: No X-SA-Exim-Version: 4.2.1 (built Wed, 24 Sep 2014 11:00:52 -0600) X-SA-Exim-Scanned: Yes (on in01.mta.xmission.com) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Minfei Huang writes: > 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. What of kexec_core? What of the messages that already have a prefix? Eric > 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 > --- > 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 > #include > #include > 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 > #include > #include