Initialize mbuf::pnext.
Complain to LogERROR if we have internal inconsistency (not LogDEBUG).
This commit is contained in:
parent
c60f92ca71
commit
09411a5af3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=32040
@ -17,7 +17,7 @@
|
||||
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
||||
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
* $Id: mbuf.c,v 1.10 1997/10/26 01:03:16 brian Exp $
|
||||
* $Id: mbuf.c,v 1.11 1997/11/22 03:37:40 brian Exp $
|
||||
*
|
||||
*/
|
||||
#include <sys/param.h>
|
||||
@ -79,6 +79,7 @@ mballoc(int cnt, int type)
|
||||
bp->base = p;
|
||||
bp->size = bp->cnt = cnt;
|
||||
bp->type = type;
|
||||
bp->pnext = NULL;
|
||||
return (bp);
|
||||
}
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
||||
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
* $Id: modem.c,v 1.70 1997/12/23 22:38:55 brian Exp $
|
||||
* $Id: modem.c,v 1.71 1997/12/24 09:29:08 brian Exp $
|
||||
*
|
||||
* TODO:
|
||||
*/
|
||||
@ -106,7 +106,7 @@ Dequeue(struct mqueue * queue)
|
||||
if (queue->top == NULL) {
|
||||
queue->last = queue->top;
|
||||
if (queue->qlen)
|
||||
LogPrintf(LogDEBUG, "Dequeue: Not zero (%d)!!!\n", queue->qlen);
|
||||
LogPrintf(LogERROR, "Dequeue: Not zero (%d)!!!\n", queue->qlen);
|
||||
}
|
||||
}
|
||||
return (bp);
|
||||
|
Loading…
Reference in New Issue
Block a user