Fix missing FILE argument in fprintf()
Subsystems (2)
PATCH 1/1 Fix missing FILE argument in fprintf()
This fixes the following compiler warning
kexec/arch/i386/crashdump-x86.c: In function 'get_crash_memory_ranges':
kexec/arch/i386/crashdump-x86.c:144: warning: passing argument 1 of \
'fprintf' from incompatible pointer type
kexec/arch/i386/crashdump-x86.c:144: warning: passing argument 2 of \
'fprintf' makes pointer from integer without a cast
--- kexec/arch/i386/crashdump-x86.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
kexec/arch/i386/crashdump-x86.c +1 -1
@@ -141,7 +141,7 @@ static int get_crash_memory_ranges(struct memory_range **range, int *ranges, } }if (crash_reserved_mem.start >= mem_max) { -fprintf ("Too small mem_max: 0x%lx.\n" , mem_max); +fprintf (stderr,"Too small mem_max: 0x%lx.\n" , mem_max);return -1 ; } crash_reserved_mem.end = mem_max;
Signature · 7 lines
1.6.0.2 _______________________________________________ kexec mailing list [email protected] http://lists.infradead.org/mailman/listinfo/kexec
Simon Horman
AppliedQuoted 10 lines · Bernhard Walle
This fixes the following compiler warning
kexec/arch/i386/crashdump-x86.c: In function 'get_crash_memory_ranges':
kexec/arch/i386/crashdump-x86.c:144: warning: passing argument 1 of \
'fprintf' from incompatible pointer type
kexec/arch/i386/crashdump-x86.c:144: warning: passing argument 2 of \
'fprintf' makes pointer from integer without a castSigned-off-by Bernhard Walle <[email protected]>
Thanks Bernhard,
applied.
Signature · 9 lines
Simon Horman VA Linux Systems Japan K.K., Sydney, Australia Satellite Office H: www.vergenet.net/~horms/ W: www.valinux.co.jp/en _______________________________________________ kexec mailing list [email protected] http://lists.infradead.org/mailman/listinfo/kexec