diff options
Diffstat (limited to 'libdha/sysdep')
-rw-r--r-- | libdha/sysdep/libdha_win32.c | 2 | ||||
-rw-r--r-- | libdha/sysdep/pci_win32.c | 2 |
2 files changed, 2 insertions, 2 deletions
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); } } |