From bd199586583c35f84112de9e2568769e5e058ae7 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 7 Feb 2019 05:45:25 +0100 Subject: [PATCH] (libretro-common) Don't use RARCH_LOG inside libretro-common files --- libretro-common/vfs/vfs_implementation.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/libretro-common/vfs/vfs_implementation.c b/libretro-common/vfs/vfs_implementation.c index 9763b5820c..658d66fe36 100644 --- a/libretro-common/vfs/vfs_implementation.c +++ b/libretro-common/vfs/vfs_implementation.c @@ -225,9 +225,6 @@ int64_t retro_vfs_file_seek_internal(libretro_vfs_implementation_file *stream, i return fioLseek(fileno(stream->fp), (off_t)offset, whence); #elif defined(ORBIS) int ret = orbisLseek(stream->fd, offset, whence); - - RARCH_LOG("[VFS]retro_vfs_file_seek_internal orbisLseek return %d on fd=%d filename=%s\n", ret, stream->fd, stream->orig_path); - if (ret < 0) return -1; return 0; @@ -386,10 +383,9 @@ libretro_vfs_implementation_file *retro_vfs_file_open_impl(const char *path, uns { #ifdef ORBIS int fd = orbisOpen(path, flags, 0644); - RARCH_LOG("[VFS]retro_vfs_file_open_impl orbisOpen fd=%d path=%s\n", fd, path); if( fd < 0) { - stream->fd=-1; + stream->fd = -1; goto error; } stream->fd = fd; @@ -460,7 +456,6 @@ libretro_vfs_implementation_file *retro_vfs_file_open_impl(const char *path, uns #ifdef ORBIS stream->size = orbisLseek(stream->fd, 0, SEEK_END); orbisLseek(stream->fd, 0, SEEK_SET); - RARCH_LOG("[VFS]retro_vfs_file_open_impl size=%d fd=%d path=%s\n", stream->size, stream->fd, stream->orig_path); #else retro_vfs_file_seek_internal(stream, 0, SEEK_SET); retro_vfs_file_seek_internal(stream, 0, SEEK_END); @@ -497,7 +492,6 @@ int retro_vfs_file_close_impl(libretro_vfs_implementation_file *stream) if (stream->fd > 0) { #ifdef ORBIS - RARCH_LOG("[VFS]retro_vfs_file_close_impl orbisClose fd=%d path=%s\n", stream->fd, stream->orig_path); orbisClose(stream->fd); stream->fd=-1; #else @@ -516,6 +510,7 @@ int retro_vfs_file_close_impl(libretro_vfs_implementation_file *stream) int retro_vfs_file_error_impl(libretro_vfs_implementation_file *stream) { #ifdef ORBIS + /* TODO/FIXME - implement this? */ return 0; #else return ferror(stream->fp); @@ -554,7 +549,6 @@ int64_t retro_vfs_file_tell_impl(libretro_vfs_implementation_file *stream) { #ifdef ORBIS int64_t ret = orbisLseek(stream->fd, 0, SEEK_CUR); - RARCH_LOG("[VFS]retro_vfs_file_tell_impl orbisLseek fd=%d path=%s ret=%d\n", stream->fd, stream->orig_path, ret); if(ret < 0) return -1; return ret; @@ -609,8 +603,6 @@ int64_t retro_vfs_file_read_impl(libretro_vfs_implementation_file *stream, { #ifdef ORBIS int64_t ret = orbisRead(stream->fd, s, (size_t)len); - - RARCH_LOG("[VFS]retro_vfs_file_read_impl orbisRead fd=%d path=%s bytesread=%d\n", stream->fd, stream->orig_path, ret); if( ret < 0) return -1; return 0; @@ -649,9 +641,6 @@ int64_t retro_vfs_file_write_impl(libretro_vfs_implementation_file *stream, cons { #ifdef ORBIS int64_t ret = orbisWrite(stream->fd, s, (size_t)len); - - RARCH_LOG("[VFS]retro_vfs_file_write_impl orbisWrite fd=%d path=%s byteswrite=%d\n", stream->fd, stream->orig_path, ret); - if( ret < 0) return -1; return 0;