build fix: use __func__ instead of __function__
Subsystems (2)
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
@@ -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