From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754256AbbINHvB (ORCPT ); Mon, 14 Sep 2015 03:51:01 -0400 Received: from mail-pa0-f44.google.com ([209.85.220.44]:35133 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751329AbbINHvA (ORCPT ); Mon, 14 Sep 2015 03:51:00 -0400 Date: Mon, 14 Sep 2015 15:50:56 +0800 From: Minfei Huang To: "Eric W. Biederman" Cc: akpm@linux-foundation.org, dyoung@redhat.com, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, mhuang@redhat.com Subject: Re: [PATCH] kexec: Add prefix "kexec" to output message Message-ID: <20150914075056.GA13324@t440s.lenovo> References: <1442128512-32578-1-git-send-email-mnfhuang@gmail.com> <87fv2il0rq.fsf@x220.int.ebiederm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87fv2il0rq.fsf@x220.int.ebiederm.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/13/15 at 11:52am, Eric W. Biederman wrote: > 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? > Hi, Eric. Last commit(2965fa), Dave Young (dyoung@redhatcom) split the previous kernel/kexec.c into three pieces(kexec_core.c, kexec_file.c, kexec.c). The common functions used by both kexec and kexec_file are placed in file kernel/kexec_core.c. The format of the output message likes "kexec: SYSC_kexec_load: hello, world" previously. Due to the missing prefix "kexec", now it like "SYSC_kexec_load: hello, world". Dave Young misses the Macro pr_fmt to define the prefix output message in file kexec.c and kexec_file.c. I think the previous Macro was moved into the file kexec_core.c when Dave did the splitting. Thanks Minfei > > 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