summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-09-05 11:12:00 +0000
committerphk <phk@FreeBSD.org>2003-09-05 11:12:00 +0000
commitd999957bf0e4ae1ec3303fe5e8f426a86d26d1ea (patch)
tree887e19e4e1716892d4fa5523fda678b3afd496f5
parent70376abeeae3dd3ffe01410af3528ee136e45a82 (diff)
downloadFreeBSD-src-d999957bf0e4ae1ec3303fe5e8f426a86d26d1ea.zip
FreeBSD-src-d999957bf0e4ae1ec3303fe5e8f426a86d26d1ea.tar.gz
Put the message about msgbuf cksum mismatch under bootverbose and tell
people what the consequence is.
-rw-r--r--sys/kern/subr_msgbuf.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/kern/subr_msgbuf.c b/sys/kern/subr_msgbuf.c
index 4febdef..7a6aa46 100644
--- a/sys/kern/subr_msgbuf.c
+++ b/sys/kern/subr_msgbuf.c
@@ -73,8 +73,11 @@ msgbuf_reinit(struct msgbuf *mbp, void *ptr, int size)
mbp->msg_ptr = ptr;
cksum = msgbuf_cksum(mbp);
if (cksum != mbp->msg_cksum) {
- printf("msgbuf cksum mismatch (read %x, calc %x)\n",
- mbp->msg_cksum, cksum);
+ if (bootverbose) {
+ printf("msgbuf cksum mismatch (read %x, calc %x)\n",
+ mbp->msg_cksum, cksum);
+ printf("Old msgbuf not recovered\n");
+ }
msgbuf_clear(mbp);
}
}
OpenPOWER on IntegriCloud