Date: Mon, 27 Jul 1998 16:57:38 +0200 (CEST) From: Marc van Woerkom <marc@pc02.labcontrol.com> To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: bin/7414: userunfriendly error message from dmesg Message-ID: <199807271457.QAA26840@pc02.labcontrol.com>
next in thread | raw e-mail | index | archive | help
>Number: 7414 >Category: bin >Synopsis: userunfriendly error message from dmesg >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Jul 27 08:00:01 PDT 1998 >Last-Modified: >Originator: & van Woerkom >Organization: >Release: FreeBSD 2.2.7-RELEASE i386 >Environment: >Description: when using dmesg to check what happened at boot time, I got "dmesg: incorrect magic number". I mistook this first, as having corrupted my dmesg by accident, but people from de-bsd-questions told me, that my kernel was older than my dmsg binary, simply. >How-To-Repeat: >Fix: I suggest this patch to clarify things (or put some hint on the man page) *** dmesg.c Mon Jul 27 15:29:07 1998 --- dmesg.c.original Thu Jun 25 02:45:59 1998 *************** *** 113,119 **** 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 of kernel message buffer is incorrect"); bp = malloc(cur.msg_size); if (!bp) errx(1, "malloc failed"); --- 113,119 ---- 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"); bp = malloc(cur.msg_size); if (!bp) errx(1, "malloc failed"); Regards, Marc >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807271457.QAA26840>