Skip to contentSkip to conversation

build fix: use __func__ instead of __function__

PATCH Dave Young 1 participant 1 message Dec 12, 2011

Subsystems (2)
lore
Share & tools
lore

Dave Young

author
#0 lore raw

Below build failure happens:
kexec/crashdump.c: In function ‘get_crash_notes_per_cpu’:
kexec/crashdump.c:106: error: ‘__function__’ undeclared (first use in this function) kexec/crashdump.c:106: error: (Each undeclared identifier is reported only once kexec/crashdump.c:106: error: for each function it appears in.)
make: *** [kexec/crashdump.o] Error 1

change to use __func__ instead of __function to fix this issue.

---
 kexec/crashdump.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
kexec/crashdump.c +1 -1
index e7ac42c..db4a31e 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", __func__, *addr);
 #endif
 
 	fclose(fp);
Signature · 7 lines
1.7.4.4


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec