All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Correct magic varible of function name in debug code
@ 2012-01-09 10:02 Han Pingtian
  2012-01-09 10:13 ` Dave Young
  2012-01-09 22:40 ` Simon Horman
  0 siblings, 2 replies; 4+ messages in thread
From: Han Pingtian @ 2012-01-09 10:02 UTC (permalink / raw)
  To: kexec; +Cc: horms

The magic varible of function name should be uppercase.

Signed-off-by: Han Pingtian <hanpt@linux.vnet.ibm.com>
---
 kexec/crashdump.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kexec/crashdump.c b/kexec/crashdump.c
index e7ac42c..847d080 100644
--- a/kexec/crashdump.c
+++ b/kexec/crashdump.c
@@ -103,7 +103,7 @@ int get_crash_notes_per_cpu(int cpu, uint64_t *addr, uint64_t *len)
 	*addr = (uint64_t) temp;
 	*len = MAX_NOTE_BYTES; /* we should get this from the kernel instead */
 #ifdef DEBUG
-	printf("%s: crash_notes addr = %Lx\n", __function__, *addr);
+	printf("%s: crash_notes addr = %Lx\n", __FUNCTION__, *addr);
 #endif
 
 	fclose(fp);
-- 
1.7.6.5


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] Correct magic varible of function name in debug code
  2012-01-09 10:02 [PATCH] Correct magic varible of function name in debug code Han Pingtian
@ 2012-01-09 10:13 ` Dave Young
  2012-01-09 10:26   ` Han Pingtian
  2012-01-09 22:40 ` Simon Horman
  1 sibling, 1 reply; 4+ messages in thread
From: Dave Young @ 2012-01-09 10:13 UTC (permalink / raw)
  To: Han Pingtian; +Cc: horms, kexec

On 01/09/2012 06:02 PM, Han Pingtian wrote:

> The magic varible of function name should be uppercase.
> 
> Signed-off-by: Han Pingtian <hanpt@linux.vnet.ibm.com>
> ---
>  kexec/crashdump.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/kexec/crashdump.c b/kexec/crashdump.c
> index e7ac42c..847d080 100644
> --- a/kexec/crashdump.c
> +++ b/kexec/crashdump.c
> @@ -103,7 +103,7 @@ int get_crash_notes_per_cpu(int cpu, uint64_t *addr, uint64_t *len)
>  	*addr = (uint64_t) temp;
>  	*len = MAX_NOTE_BYTES; /* we should get this from the kernel instead */
>  #ifdef DEBUG
> -	printf("%s: crash_notes addr = %Lx\n", __function__, *addr);
> +	printf("%s: crash_notes addr = %Lx\n", __FUNCTION__, *addr);
>  #endif
>  
>  	fclose(fp);



Hi, Han

Glad to see you here.

I post a similar fix for this issue, please see:
http://lists.infradead.org/pipermail/kexec/2011-December/005889.html

-- 
Thanks
Dave

_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Correct magic varible of function name in debug code
  2012-01-09 10:13 ` Dave Young
@ 2012-01-09 10:26   ` Han Pingtian
  0 siblings, 0 replies; 4+ messages in thread
From: Han Pingtian @ 2012-01-09 10:26 UTC (permalink / raw)
  To: Dave Young; +Cc: horms, kexec

On Mon, Jan 09, 2012 at 06:13:06PM +0800, Dave Young wrote:
> On 01/09/2012 06:02 PM, Han Pingtian wrote:
> 
> > The magic varible of function name should be uppercase.
> > 
> > Signed-off-by: Han Pingtian <hanpt@linux.vnet.ibm.com>
> > ---
> >  kexec/crashdump.c |    2 +-
> >  1 files changed, 1 insertions(+), 1 deletions(-)
> > 
> > diff --git a/kexec/crashdump.c b/kexec/crashdump.c
> > index e7ac42c..847d080 100644
> > --- a/kexec/crashdump.c
> > +++ b/kexec/crashdump.c
> > @@ -103,7 +103,7 @@ int get_crash_notes_per_cpu(int cpu, uint64_t *addr, uint64_t *len)
> >  	*addr = (uint64_t) temp;
> >  	*len = MAX_NOTE_BYTES; /* we should get this from the kernel instead */
> >  #ifdef DEBUG
> > -	printf("%s: crash_notes addr = %Lx\n", __function__, *addr);
> > +	printf("%s: crash_notes addr = %Lx\n", __FUNCTION__, *addr);
> >  #endif
> >  
> >  	fclose(fp);
> 
> 
> 
> Hi, Han
> 
> Glad to see you here.
> 
Thanks.
> I post a similar fix for this issue, please see:
> http://lists.infradead.org/pipermail/kexec/2011-December/005889.html
Great. I'm not very familiar with that, just want to point out there 
is a problem. Hope it can be fixed soon :) 
> 
> -- 
> Thanks
> Dave


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Correct magic varible of function name in debug code
  2012-01-09 10:02 [PATCH] Correct magic varible of function name in debug code Han Pingtian
  2012-01-09 10:13 ` Dave Young
@ 2012-01-09 22:40 ` Simon Horman
  1 sibling, 0 replies; 4+ messages in thread
From: Simon Horman @ 2012-01-09 22:40 UTC (permalink / raw)
  To: Han Pingtian; +Cc: kexec

On Mon, Jan 09, 2012 at 06:02:30PM +0800, Han Pingtian wrote:
> The magic varible of function name should be uppercase.

Thanks, applied.

_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-01-09 22:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-09 10:02 [PATCH] Correct magic varible of function name in debug code Han Pingtian
2012-01-09 10:13 ` Dave Young
2012-01-09 10:26   ` Han Pingtian
2012-01-09 22:40 ` Simon Horman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.