summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2004-01-13 21:03:35 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2004-01-13 21:03:35 +0000
commit4feacabc550358774853a495f8ae54888eb9a5e5 (patch)
tree2f95a1e40c62eb62273000aeabbcd8f1c636fe69 /sbin
parent686b5167a3d2c457b05e3d2b796800e19259ab71 (diff)
Use correct type for magic number.
ok marc@ millert@
Diffstat (limited to 'sbin')
-rw-r--r--sbin/savecore/savecore.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sbin/savecore/savecore.c b/sbin/savecore/savecore.c
index fb41fa08da6..4c5e71ca507 100644
--- a/sbin/savecore/savecore.c
+++ b/sbin/savecore/savecore.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: savecore.c,v 1.38 2003/12/28 04:09:13 espie Exp $ */
+/* $OpenBSD: savecore.c,v 1.39 2004/01/13 21:03:34 otto Exp $ */
/* $NetBSD: savecore.c,v 1.26 1996/03/18 21:16:05 leo Exp $ */
/*-
@@ -40,7 +40,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)savecore.c 8.3 (Berkeley) 1/2/94";
#else
-static char rcsid[] = "$OpenBSD: savecore.c,v 1.38 2003/12/28 04:09:13 espie Exp $";
+static char rcsid[] = "$OpenBSD: savecore.c,v 1.39 2004/01/13 21:03:34 otto Exp $";
#endif
#endif /* not lint */
@@ -351,7 +351,7 @@ check_kmem(void)
int
dump_exists(void)
{
- int newdumpmag;
+ u_long newdumpmag;
(void)KREAD(kd_dump, dump_nl[X_DUMPMAG].n_value, &newdumpmag);
@@ -366,7 +366,8 @@ dump_exists(void)
*/
if (newdumpmag != dumpmag) {
if (verbose)
- syslog(LOG_WARNING, "magic number mismatch (%x != %x)",
+ syslog(LOG_WARNING,
+ "magic number mismatch (%lx != %lx)",
newdumpmag, dumpmag);
syslog(LOG_WARNING, "no core dump");
return (0);