Mercurial > mplayer.hg
changeset 17971:fd0d4b94b5ec
Change some printf calls to fprintf.
based on a patch by Attila tvs, oattila,,@,,chello,,.,,hu
author | diego |
---|---|
date | Mon, 27 Mar 2006 07:49:14 +0000 |
parents | 77ecc381e6e9 |
children | 03170287aea9 |
files | libdha/pci.c libdha/sysdep/libdha_win32.c libdha/sysdep/pci_win32.c libmpcodecs/mp_image.h sub_cc.c |
diffstat | 5 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/libdha/pci.c Mon Mar 27 07:31:08 2006 +0000 +++ b/libdha/pci.c Mon Mar 27 07:49:14 2006 +0000 @@ -717,7 +717,7 @@ 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); }
--- a/libdha/sysdep/libdha_win32.c Mon Mar 27 07:31:08 2006 +0000 +++ b/libdha/sysdep/libdha_win32.c Mon Mar 27 07:49:14 2006 +0000 @@ -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;
--- a/libdha/sysdep/pci_win32.c Mon Mar 27 07:31:08 2006 +0000 +++ b/libdha/sysdep/pci_win32.c Mon Mar 27 07:49:14 2006 +0000 @@ -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); } }
--- a/libmpcodecs/mp_image.h Mon Mar 27 07:31:08 2006 +0000 +++ b/libmpcodecs/mp_image.h Mon Mar 27 07:49:14 2006 +0000 @@ -202,7 +202,7 @@ 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
--- a/sub_cc.c Mon Mar 27 07:31:08 2006 +0000 +++ b/sub_cc.c Mon Mar 27 07:49:14 2006 +0000 @@ -100,7 +100,7 @@ { 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;