[Mplayer-cvslog] CVS: main/linux shmem.c,1.1.1.1,1.2
GEREOFFY
arpi_esp at users.sourceforge.net
Wed Apr 18 03:25:11 CEST 2001
Update of /cvsroot/mplayer/main/linux
In directory usw-pr-cvs1:/tmp/cvs-serv24792
Modified Files:
shmem.c
Log Message:
disable ddebug printfs
Index: shmem.c
===================================================================
RCS file: /cvsroot/mplayer/main/linux/shmem.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** shmem.c 2001/02/24 20:30:12 1.1.1.1
--- shmem.c 2001/04/18 01:25:09 1.2
***************
*** 42,46 ****
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);
return p;
case 1: // ========= MAP_SHARED + /dev/zero ==========
--- 42,46 ----
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);
return p;
case 1: // ========= MAP_SHARED + /dev/zero ==========
***************
*** 48,52 ****
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);
return p;
case 2: { // ========= shmget() ==========
--- 48,52 ----
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);
return p;
case 2: { // ========= shmget() ==========
***************
*** 64,68 ****
break;
}
! printf("shmem: %d bytes allocated using shmget() & shmat() (%X)\n",size,p);
return p;
}
--- 64,68 ----
break;
}
! // printf("shmem: %d bytes allocated using shmget() & shmat() (%X)\n",size,p);
return p;
}
_______________________________________________
Mplayer-cvslog mailing list
Mplayer-cvslog at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-cvslog
More information about the MPlayer-cvslog
mailing list