From 4f1654fff445d112e931db403b0e03ea11452383 Mon Sep 17 00:00:00 2001 From: hoek Date: Mon, 27 Jul 1998 18:53:45 +0000 Subject: Use an error message that more clearly indites(sp?) an out-of-sync kernel+userland when that is the case. PR: bin/7414 --- sbin/dmesg/dmesg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sbin/dmesg') 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 @@ -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"); -- cgit v1.1