Skip to contentSkip to conversation

Correct magic varible of function name in debug code

PATCH Applied Han Pingtian 3 participants 4 messages Jan 9, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index e7ac42c..847d080 100644
@@ -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
#1 lore raw
Quoted 12 lines · Han Pingtian

The magic varible of function name should be uppercase.

---
 kexec/crashdump.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
kexec/crashdump.c +0 -0
index e7ac42c..847d080 100644

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
#2 lore raw
Quoted 21 lines · Dave Young
Quoted 19 lines · Han Pingtian

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
index e7ac42c..847d080 100644
@@ -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 -0
 	fclose(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