1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-26 00:42:57 +00:00

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
This commit is contained in:
diego 2006-03-27 07:49:14 +00:00
parent 55859c930c
commit 41bfa3e8e0
5 changed files with 5 additions and 5 deletions

View File

@ -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);
}

View File

@ -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;

View File

@ -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);
}
}

View File

@ -202,7 +202,7 @@ static inline void mp_image_setfmt(mp_image_t* mpi,unsigned int out_fmt){
mpi->chroma_y_shift=1;
return;
}
printf("mp_image: Unknown out_fmt: 0x%X\n",out_fmt);
fprintf(stderr,"mp_image: unknown out_fmt: 0x%X\n",out_fmt);
mpi->bpp=0;
}
#endif

View File

@ -100,7 +100,7 @@ static void append_char(char c)
{
if(cursor_pos==CC_MAX_LINE_LENGTH-1)
{
printf("sub_cc.c: append_char() reached CC_MAX_LINE_LENGTH!\n");
fprintf(stderr,"sub_cc.c: append_char() reached CC_MAX_LINE_LENGTH!\n");
return;
}
bb->text[bb->lines - 1][cursor_pos++]=c;