diff options
author | ps <ps@FreeBSD.org> | 2001-11-13 01:08:54 +0000 |
---|---|---|
committer | ps <ps@FreeBSD.org> | 2001-11-13 01:08:54 +0000 |
commit | d745b728a2c2707cc3b46c02356335f659c74895 (patch) | |
tree | 81568898dc6253eda96665fd068f2b22e8e882c0 /sys/kern/kern_shutdown.c | |
parent | 42cf4af882cddb6aef7dc5394d7c6d7abf14fab8 (diff) | |
download | FreeBSD-src-d745b728a2c2707cc3b46c02356335f659c74895.zip FreeBSD-src-d745b728a2c2707cc3b46c02356335f659c74895.tar.gz |
Fix a signed bug in the crashdump code for systems with > 2GB of ram.
Reviewed by: peter
Diffstat (limited to 'sys/kern/kern_shutdown.c')
-rw-r--r-- | sys/kern/kern_shutdown.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_shutdown.c b/sys/kern/kern_shutdown.c index 4686134..648e438 100644 --- a/sys/kern/kern_shutdown.c +++ b/sys/kern/kern_shutdown.c @@ -544,7 +544,7 @@ dumpsys(void) } int -dumpstatus(vm_offset_t addr, long count) +dumpstatus(vm_offset_t addr, off_t count) { int c; @@ -553,7 +553,7 @@ dumpstatus(vm_offset_t addr, long count) if (wdog_tickler) (*wdog_tickler)(); #endif - printf("%ld ", count / (1024 * 1024)); + printf("%ld ", (long)(count / (1024 * 1024))); } if ((c = cncheckc()) == 0x03) |