summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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