Update for the KDB framework:
o Call kdb_enter() instead of Debugger().
This commit is contained in:
parent
32de0087b0
commit
0d98473ef9
@ -44,6 +44,7 @@
|
||||
#ifdef _KERNEL
|
||||
#include "opt_vinum.h"
|
||||
#include <sys/systm.h>
|
||||
#include <sys/kdb.h>
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/proc.h>
|
||||
#include <sys/conf.h>
|
||||
|
@ -210,7 +210,7 @@ complete_rqe(struct buf *bp)
|
||||
#ifdef VINUMDEBUG
|
||||
if (debug & DEBUG_RESID) {
|
||||
if (ubp->b_resid != 0) /* still something to transfer? */
|
||||
Debugger("resid");
|
||||
kdb_enter("resid");
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -201,7 +201,7 @@ vinum_super_ioctl(struct cdev *dev,
|
||||
boothowto |= RB_GDB; /* serial debug line */
|
||||
else
|
||||
boothowto &= ~RB_GDB; /* local ddb */
|
||||
Debugger("vinum debug");
|
||||
kdb_enter("vinum debug");
|
||||
}
|
||||
ioctl_reply = (struct _ioctl_reply *) data; /* reinstate the address to reply to */
|
||||
ioctl_reply->error = 0;
|
||||
|
@ -175,7 +175,7 @@ MMalloc(int size, char *file, int line)
|
||||
for (i = 0; i < malloccount; i++) {
|
||||
if (((result + size) > malloced[i].address)
|
||||
&& (result < malloced[i].address + malloced[i].size)) /* overlap */
|
||||
Debugger("Malloc overlap");
|
||||
kdb_enter("Malloc overlap");
|
||||
}
|
||||
if (result) {
|
||||
char *f = basename(file);
|
||||
@ -238,7 +238,7 @@ FFree(void *mem, char *file, int line)
|
||||
mem,
|
||||
file,
|
||||
line);
|
||||
Debugger("Free");
|
||||
kdb_enter("Free");
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -33,6 +33,7 @@
|
||||
*/
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/kdb.h>
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/lock.h>
|
||||
#include <sys/malloc.h>
|
||||
@ -140,7 +141,7 @@ smbfs_name_free(u_char *name)
|
||||
cp--;
|
||||
if (*cp != 0xfc) {
|
||||
printf("First byte of name entry '%s' corrupted\n", name);
|
||||
Debugger("ditto");
|
||||
kdb_enter("ditto");
|
||||
}
|
||||
cp -= sizeof(int);
|
||||
nmlen = *(int*)cp;
|
||||
@ -148,11 +149,11 @@ smbfs_name_free(u_char *name)
|
||||
if (nmlen != slen) {
|
||||
printf("Name length mismatch: was %d, now %d name '%s'\n",
|
||||
nmlen, slen, name);
|
||||
Debugger("ditto");
|
||||
kdb_enter("ditto");
|
||||
}
|
||||
if (name[nmlen] != 0xfe) {
|
||||
printf("Last byte of name entry '%s' corrupted\n", name);
|
||||
Debugger("ditto");
|
||||
kdb_enter("ditto");
|
||||
}
|
||||
free(cp, M_SMBNODENAME);
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user