Correct magic varible of function name in debug code
Subsystems (2)
PATCH 1/1 Correct magic varible of function name in debug code
The magic varible of function name should be uppercase.
--- kexec/crashdump.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
kexec/crashdump.c +1 -1
@@ -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);
Signature · 7 lines
1.7.6.5 _______________________________________________ kexec mailing list [email protected] http://lists.infradead.org/mailman/listinfo/kexec
Quoted 12 lines · Han Pingtian
The magic varible of function name should be uppercase.
Signed-off-by Han Pingtian <[email protected]>--- kexec/crashdump.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)kexec/crashdump.c +0
-0
kexec/crashdump.c int get_crash_notes_per_cpu(int cpu, uint64_t *addr, uint64_t *len) · line 109
Quoted 8 lines
kexec/crashdump.c +1
-1@@ -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
Signature · 7 lines
Thanks Dave _______________________________________________ kexec mailing list [email protected] http://lists.infradead.org/mailman/listinfo/kexec
Quoted 21 lines · Dave Young
Quoted 19 lines · Han Pingtian
The magic varible of function name should be uppercase.
Signed-off-by Han Pingtian <[email protected]>--- kexec/crashdump.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)kexec/crashdump.c +1
-1@@ -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
Quoted 8 lines
kexec/crashdump.c int get_crash_notes_per_cpu(int cpu, uint64_t *addr, uint64_t *len) · line 109
Quoted 1 line
kexec/crashdump.c +0
-0fclose (fp);Hi, Han
Glad to see you here.
Thanks.
Quoted 2 lines
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 :)
Quoted 4 lines
Signature · 3 lines
-- Thanks Dave
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
Simon Horman
AppliedQuoted 1 line · Han Pingtian
The magic varible of function name should be uppercase.
Thanks, applied.
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec