Remove some debug printf(), and #ifdef DEBUG some others.
This commit is contained in:
parent
bca4709f30
commit
2af19a98f8
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: xen_shm_machdep.c,v 1.7 2005/04/16 08:49:29 yamt Exp $ */
|
||||
/* $NetBSD: xen_shm_machdep.c,v 1.8 2005/05/10 20:36:01 bouyer Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2005 Manuel Bouyer.
|
||||
|
@ -141,14 +141,18 @@ xen_shm_map(paddr_t *ma, int nentries, int domid, vaddr_t *vap, int flags)
|
|||
if (__predict_false(SIMPLEQ_FIRST(&xen_shm_callbacks) != NULL) &&
|
||||
(flags & XSHM_CALLBACK) == 0) {
|
||||
splx(s);
|
||||
#ifdef DEBUG
|
||||
printf("xen_shm_map: ENOMEM1\n");
|
||||
#endif
|
||||
return ENOMEM;
|
||||
}
|
||||
/* allocate the needed virtual space */
|
||||
if (extent_alloc(xen_shm_ex, nentries, 1, 0, EX_NOWAIT, &new_va_pg)
|
||||
!= 0) {
|
||||
splx(s);
|
||||
#ifdef DEBUG
|
||||
printf("xen_shm_map: ENOMEM\n");
|
||||
#endif
|
||||
return ENOMEM;
|
||||
}
|
||||
splx(s);
|
||||
|
@ -238,12 +242,10 @@ xen_shm_unmap(vaddr_t va, paddr_t *pa, int nentries, int domid)
|
|||
* but I've not been able to trigger this code yet,
|
||||
* so leave them here until we're sure the code works
|
||||
*/
|
||||
printf("xen_shm_unmap: callback\n"); /* XXX */
|
||||
if (xshmc->xshmc_callback(xshmc->xshmc_arg) == 0) {
|
||||
/* callback succeeded */
|
||||
SIMPLEQ_REMOVE_HEAD(&xen_shm_callbacks, xshmc_entries);
|
||||
pool_put(&xen_shm_callback_pool, xshmc);
|
||||
printf("xen_shm_unmap: callback cleared\n"); /* XXX */
|
||||
} else {
|
||||
/* callback failed, probably out of ressources */
|
||||
splx(s);
|
||||
|
@ -258,7 +260,6 @@ xen_shm_callback(int (*callback)(void *), void *arg)
|
|||
{
|
||||
struct xen_shm_callback_entry *xshmc;
|
||||
int s;
|
||||
printf("xen_shm_callback\n"); /* XXX */
|
||||
|
||||
s = splvm();
|
||||
xshmc = pool_get(&xen_shm_callback_pool, PR_NOWAIT);
|
||||
|
|
Loading…
Reference in New Issue