Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/xen/i386 Remove some debug printf(), and #ifdef DEB...



details:   https://anonhg.NetBSD.org/src/rev/a46afd213e2c
branches:  trunk
changeset: 580834:a46afd213e2c
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Tue May 10 20:36:01 2005 +0000

description:
Remove some debug printf(), and #ifdef DEBUG some others.

diffstat:

 sys/arch/xen/i386/xen_shm_machdep.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (49 lines):

diff -r ecad64396686 -r a46afd213e2c sys/arch/xen/i386/xen_shm_machdep.c
--- a/sys/arch/xen/i386/xen_shm_machdep.c       Tue May 10 20:28:35 2005 +0000
+++ b/sys/arch/xen/i386/xen_shm_machdep.c       Tue May 10 20:36:01 2005 +0000
@@ -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 @@
        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 @@
                 * 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 @@
 {
        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);



Home | Main Index | Thread Index | Old Index