diff options
author | hoek <hoek@FreeBSD.org> | 1998-07-27 18:53:45 +0000 |
---|---|---|
committer | hoek <hoek@FreeBSD.org> | 1998-07-27 18:53:45 +0000 |
commit | 4f1654fff445d112e931db403b0e03ea11452383 (patch) | |
tree | 7198616836e2ad876380d81092a923cae8f92c8f /sbin | |
parent | 084c8c66276ff27072f5b898b4aa8f7153d1464b (diff) | |
download | FreeBSD-src-4f1654fff445d112e931db403b0e03ea11452383.zip FreeBSD-src-4f1654fff445d112e931db403b0e03ea11452383.tar.gz |
Use an error message that more clearly indites(sp?) an out-of-sync
kernel+userland when that is the case.
PR: bin/7414
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/dmesg/dmesg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/dmesg/dmesg.c b/sbin/dmesg/dmesg.c index c0166a9..a7bfe3f 100644 --- a/sbin/dmesg/dmesg.c +++ b/sbin/dmesg/dmesg.c @@ -42,7 +42,7 @@ static const char copyright[] = static const char sccsid[] = "@(#)dmesg.c 8.1 (Berkeley) 6/5/93"; #endif static const char rcsid[] = - "$Id: dmesg.c,v 1.8 1998/05/19 08:58:53 phk Exp $"; + "$Id: dmesg.c,v 1.9 1998/06/04 06:51:14 charnier Exp $"; #endif /* not lint */ #include <sys/msgbuf.h> @@ -113,7 +113,7 @@ main(argc, argv) if (KREAD(nl[X_MSGBUF].n_value, bufp) || KREAD((long)bufp, cur)) errx(1, "kvm_read: %s", kvm_geterr(kd)); if (cur.msg_magic != MSG_MAGIC) - errx(1, "magic number incorrect"); + errx(1, "kernel message buffer has different magic number"); bp = malloc(cur.msg_size); if (!bp) errx(1, "malloc failed"); |