changeset 498:86c689b3e40e

disable ddebug printfs
author arpi_esp
date Wed, 18 Apr 2001 01:25:09 +0000
parents f776e51e531c
children 3601edb3805c
files linux/shmem.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/linux/shmem.c	Tue Apr 17 23:04:37 2001 +0000
+++ b/linux/shmem.c	Wed Apr 18 01:25:09 2001 +0000
@@ -41,13 +41,13 @@
   case 0:  // ========= MAP_ANON|MAP_SHARED ==========
     p=mmap(0,size,PROT_READ|PROT_WRITE,MAP_ANON|MAP_SHARED,-1,0);
     if(p==MAP_FAILED) break; // failed
-    printf("shmem: %d bytes allocated using mmap anon (%X)\n",size,p);
+//    printf("shmem: %d bytes allocated using mmap anon (%X)\n",size,p);
     return p;
   case 1:  // ========= MAP_SHARED + /dev/zero ==========
 	  if ((devzero = open("/dev/zero", O_RDWR, 0)) == -1) break;
     p=mmap(0,size,PROT_READ|PROT_WRITE,MAP_SHARED,devzero,0);
     if(p==MAP_FAILED) break; // failed
-    printf("shmem: %d bytes allocated using mmap /dev/zero (%X)\n",size,p);
+//    printf("shmem: %d bytes allocated using mmap /dev/zero (%X)\n",size,p);
     return p;
   case 2: { // ========= shmget() ==========
     struct shmid_ds shmemds;
@@ -63,7 +63,7 @@
       if (shmdt(p) == -1) perror ("shmdt()");
       break;
     }
-    printf("shmem: %d bytes allocated using shmget() & shmat() (%X)\n",size,p);
+//    printf("shmem: %d bytes allocated using shmget() & shmat() (%X)\n",size,p);
     return p;
 	}
   default: