diff options
author | Bernhard Walle <bwalle@suse.de> | 2009-01-16 15:06:48 +0100 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2009-01-19 09:29:22 +1100 |
commit | 6d4cdf4f94bf7ad2d1752b553ea948385881ff79 (patch) | |
tree | b800124ef1e566d1f9224c0a26cb5e7e1eefd8ab | |
parent | b43a84a31a4be6ed025c1bdef3bb1c3c12e01b16 (diff) |
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
Signed-off-by: Bernhard Walle <bwalle@suse.de>
Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r-- | kexec/arch/i386/crashdump-x86.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kexec/arch/i386/crashdump-x86.c b/kexec/arch/i386/crashdump-x86.c index 478d6be..ec61dfe 100644 --- a/kexec/arch/i386/crashdump-x86.c +++ b/kexec/arch/i386/crashdump-x86.c @@ -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; |