[MPlayer-cvslog] CVS: main/libdha/sysdep libdha_win32.c, 1.3, 1.4 pci_win32.c, 1.3, 1.4

Diego Biurrun CVS syncmail at mplayerhq.hu
Mon Mar 27 09:49:17 CEST 2006


CVS change done by Diego Biurrun CVS

Update of /cvsroot/mplayer/main/libdha/sysdep
In directory mail:/var2/tmp/cvs-serv14412/libdha/sysdep

Modified Files:
	libdha_win32.c pci_win32.c 
Log Message:
Change some printf calls to fprintf.
based on a patch by Attila Ötvös, oattila,,@,,chello,,.,,hu


Index: libdha_win32.c
===================================================================
RCS file: /cvsroot/mplayer/main/libdha/sysdep/libdha_win32.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- libdha_win32.c	23 Mar 2004 10:34:24 -0000	1.3
+++ libdha_win32.c	27 Mar 2006 07:49:14 -0000	1.4
@@ -85,7 +85,7 @@
     dhahelper_priv.base = base;
     if(hDriver==INVALID_HANDLE_VALUE)hDriver = CreateFile("\\\\.\\DHAHELPER",GENERIC_READ | GENERIC_WRITE,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);
     if (!DeviceIoControl(hDriver, IOCTL_DHAHELPER_MAPPHYSTOLIN, &dhahelper_priv,sizeof(dhahelper_t), &dhahelper_priv, sizeof(dhahelper_t),&dwBytesReturned, NULL)){
-      printf("unable to map thre requested memory region\n");
+      fprintf(stderr,"Unable to map the requested memory region.\n");
       return NULL;
     }
     else return dhahelper_priv.ptr;

Index: pci_win32.c
===================================================================
RCS file: /cvsroot/mplayer/main/libdha/sysdep/pci_win32.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- pci_win32.c	23 Mar 2004 10:34:24 -0000	1.3
+++ pci_win32.c	27 Mar 2006 07:49:14 -0000	1.4
@@ -20,7 +20,7 @@
       DWORD dwBytesReturned;
       hDriver = CreateFile("\\\\.\\DHAHELPER",GENERIC_READ | GENERIC_WRITE,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);
       if(!DeviceIoControl(hDriver, IOCTL_DHAHELPER_ENABLEDIRECTIO, NULL,0, NULL, 0, &dwBytesReturned, NULL)){
-        printf("unable to enable directio please install dhahelper.sys\n");
+        fprintf(stderr,"Unable to enable directio please install dhahelper.sys.\n");
         return(1);       
       }
     }




More information about the MPlayer-cvslog mailing list