I want to distinguish from DEBUG printouts and CODA_VERBOSE printouts.
The latter are normal informational messages that are sometimes interesting to view.
This commit is contained in:
parent
cc46a13dac
commit
976280c933
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: coda_namecache.c,v 1.6 1998/09/26 15:24:46 tv Exp $ */
|
||||
/* $NetBSD: coda_namecache.c,v 1.7 1998/09/28 17:55:21 rvb Exp $ */
|
||||
|
||||
/*
|
||||
*
|
||||
@ -47,6 +47,11 @@
|
||||
/*
|
||||
* HISTORY
|
||||
* $Log: coda_namecache.c,v $
|
||||
* Revision 1.7 1998/09/28 17:55:21 rvb
|
||||
* I want to distinguish from DEBUG printouts and CODA_VERBOSE printouts.
|
||||
* The latter are normal informational messages that are sometimes
|
||||
* interesting to view.
|
||||
*
|
||||
* Revision 1.6 1998/09/26 15:24:46 tv
|
||||
* DIAGNOSTIC -> DEBUG for all non-panic messages. DIAGNOSTIC is only for
|
||||
* sanity checks and should not turn on any messages not already printed
|
||||
@ -292,7 +297,7 @@ coda_nc_init(void)
|
||||
|
||||
bzero(&coda_nc_stat, (sizeof(struct coda_nc_statistics)));
|
||||
|
||||
#ifdef DEBUG
|
||||
#ifdef CODA_VERBOSE
|
||||
printf("CODA NAME CACHE: CACHE %d, HASH TBL %d\n", CODA_NC_CACHESIZE, CODA_NC_HASHSIZE);
|
||||
#endif
|
||||
CODA_ALLOC(coda_nc_heap, struct coda_cache *, TOTAL_CACHE_SIZE);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: coda_psdev.c,v 1.6 1998/09/26 15:24:46 tv Exp $ */
|
||||
/* $NetBSD: coda_psdev.c,v 1.7 1998/09/28 17:55:22 rvb Exp $ */
|
||||
|
||||
/*
|
||||
*
|
||||
@ -52,6 +52,11 @@
|
||||
/*
|
||||
* HISTORY
|
||||
* $Log: coda_psdev.c,v $
|
||||
* Revision 1.7 1998/09/28 17:55:22 rvb
|
||||
* I want to distinguish from DEBUG printouts and CODA_VERBOSE printouts.
|
||||
* The latter are normal informational messages that are sometimes
|
||||
* interesting to view.
|
||||
*
|
||||
* Revision 1.6 1998/09/26 15:24:46 tv
|
||||
* DIAGNOSTIC -> DEBUG for all non-panic messages. DIAGNOSTIC is only for
|
||||
* sanity checks and should not turn on any messages not already printed
|
||||
@ -637,12 +642,12 @@ coda_call(mntinfo, inSize, outSize, buffer)
|
||||
if (error == 0)
|
||||
break;
|
||||
else if (error == EWOULDBLOCK) {
|
||||
#ifdef DEBUG
|
||||
#ifdef CODA_VERBOSE
|
||||
printf("coda_call: tsleep TIMEOUT %d sec\n", 2+2*i);
|
||||
#endif
|
||||
} else if (sigismember(&p->p_siglist, SIGIO)) {
|
||||
sigaddset(&p->p_sigmask, SIGIO);
|
||||
#ifdef DEBUG
|
||||
#ifdef CODA_VERBOSE
|
||||
printf("coda_call: tsleep returns %d SIGIO, cnt %d\n", error, i);
|
||||
#endif
|
||||
} else {
|
||||
@ -650,7 +655,7 @@ coda_call(mntinfo, inSize, outSize, buffer)
|
||||
tmp = p->p_siglist; /* array assignment */
|
||||
sigminusset(&p->p_sigmask, &tmp);
|
||||
|
||||
#ifdef DEBUG
|
||||
#ifdef CODA_VERBOSE
|
||||
printf("coda_call: tsleep returns %d, cnt %d\n", error, i);
|
||||
printf("coda_call: siglist = %x.%x.%x.%x, sigmask = %x.%x.%x.%x, mask %x.%x.%x.%x\n",
|
||||
p->p_siglist.__bits[0], p->p_siglist.__bits[1],
|
||||
@ -683,7 +688,9 @@ coda_call(mntinfo, inSize, outSize, buffer)
|
||||
|
||||
else if (!(vmp->vm_flags & VM_READ)) {
|
||||
/* Interrupted before venus read it. */
|
||||
#ifndef DEBUG
|
||||
#ifdef CODA_VERBOSE
|
||||
if (1)
|
||||
#else
|
||||
if (codadebug)
|
||||
#endif
|
||||
myprintf(("interrupted before read: op = %d.%d, flags = %x\n",
|
||||
@ -699,7 +706,9 @@ coda_call(mntinfo, inSize, outSize, buffer)
|
||||
struct coda_in_hdr *dog;
|
||||
struct vmsg *svmp;
|
||||
|
||||
#ifndef DEBUG
|
||||
#ifdef CODA_VERBOSE
|
||||
if (1)
|
||||
#else
|
||||
if (codadebug)
|
||||
#endif
|
||||
myprintf(("Sending Venus a signal: op = %d.%d, flags = %x\n",
|
||||
|
@ -6,7 +6,7 @@ mkdir
|
||||
rmdir
|
||||
symlink
|
||||
*/
|
||||
/* $NetBSD: coda_vnops.c,v 1.6 1998/09/26 15:24:47 tv Exp $ */
|
||||
/* $NetBSD: coda_vnops.c,v 1.7 1998/09/28 17:55:22 rvb Exp $ */
|
||||
|
||||
/*
|
||||
*
|
||||
@ -56,6 +56,11 @@ symlink
|
||||
/*
|
||||
* HISTORY
|
||||
* $Log: coda_vnops.c,v $
|
||||
* Revision 1.7 1998/09/28 17:55:22 rvb
|
||||
* I want to distinguish from DEBUG printouts and CODA_VERBOSE printouts.
|
||||
* The latter are normal informational messages that are sometimes
|
||||
* interesting to view.
|
||||
*
|
||||
* Revision 1.6 1998/09/26 15:24:47 tv
|
||||
* DIAGNOSTIC -> DEBUG for all non-panic messages. DIAGNOSTIC is only for
|
||||
* sanity checks and should not turn on any messages not already printed
|
||||
@ -508,13 +513,13 @@ coda_close(v)
|
||||
|
||||
if (IS_UNMOUNTING(cp)) {
|
||||
if (cp->c_ovp) {
|
||||
#ifdef DEBUG
|
||||
#ifdef CODA_VERBOSE
|
||||
printf("coda_close: destroying container ref %d, ufs vp %p of vp %p/cp %p\n",
|
||||
vp->v_usecount, cp->c_ovp, vp, cp);
|
||||
#endif
|
||||
vgone(cp->c_ovp);
|
||||
} else {
|
||||
#ifdef DEBUG
|
||||
#ifdef CODA_VERBOSE
|
||||
printf("coda_close: NO container vp %p/cp %p\n", vp, cp);
|
||||
#endif
|
||||
}
|
||||
@ -1333,7 +1338,7 @@ coda_create(v)
|
||||
panic("unlocked parent but couldn't lock child");
|
||||
}
|
||||
}
|
||||
#ifdef DEBUG
|
||||
#ifdef OLD_DIAGNOSTIC
|
||||
else {
|
||||
printf("coda_create: LOCKLEAF not set!\n");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user