summaryrefslogtreecommitdiffstats
path: root/libdha
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-03-27 07:49:14 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-03-27 07:49:14 +0000
commit41bfa3e8e0a1b9cbb44e36b7aca4f56b90e97be7 (patch)
tree060a303452647d8deb31be7f4db5b5bc08c76742 /libdha
parent55859c930cd4d584bf0bed7bbafcfe574329bb55 (diff)
downloadmpv-41bfa3e8e0a1b9cbb44e36b7aca4f56b90e97be7.tar.bz2
mpv-41bfa3e8e0a1b9cbb44e36b7aca4f56b90e97be7.tar.xz
Change some printf calls to fprintf.
based on a patch by Attila Ötvös, oattila,,@,,chello,,.,,hu git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17972 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libdha')
-rw-r--r--libdha/pci.c2
-rw-r--r--libdha/sysdep/libdha_win32.c2
-rw-r--r--libdha/sysdep/pci_win32.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/libdha/pci.c b/libdha/pci.c
index 6e2c3fc7b2..474625a68a 100644
--- a/libdha/pci.c
+++ b/libdha/pci.c
@@ -717,7 +717,7 @@ int pci_config_read(unsigned char bus, unsigned char dev, unsigned char func,
if (len != 4)
{
- printf("pci_config_read: reading non-dword not supported!\n");
+ fprintf(stderr,"pci_config_read: Reading non-dword not supported!\n");
return(ENOTSUP);
}
diff --git a/libdha/sysdep/libdha_win32.c b/libdha/sysdep/libdha_win32.c
index 5f325dd532..0a151b0637 100644
--- a/libdha/sysdep/libdha_win32.c
+++ b/libdha/sysdep/libdha_win32.c
@@ -85,7 +85,7 @@ void *map_phys_mem(unsigned long base, unsigned long size) {
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;
diff --git a/libdha/sysdep/pci_win32.c b/libdha/sysdep/pci_win32.c
index a4a08077eb..5dc1841d24 100644
--- a/libdha/sysdep/pci_win32.c
+++ b/libdha/sysdep/pci_win32.c
@@ -20,7 +20,7 @@ static __inline__ int enable_os_io(void)
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);
}
}