[libbluray-devel] Fixed logging pointers in file/*
hpi1
git at videolan.org
Tue Mar 5 10:49:13 CET 2013
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Tue Mar 5 11:06:45 2013 +0200| [e2ef172a41a3408068c2c0be3bf1253414e76be7] | committer: hpi1
Fixed logging pointers in file/*
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=e2ef172a41a3408068c2c0be3bf1253414e76be7
---
src/file/dir_posix.c | 6 +++---
src/file/file_posix.c | 10 +++++-----
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/file/dir_posix.c b/src/file/dir_posix.c
index dd7bbd7..bfd14a5 100644
--- a/src/file/dir_posix.c
+++ b/src/file/dir_posix.c
@@ -54,7 +54,7 @@ static void dir_close_posix(BD_DIR_H *dir)
closedir((DIR *)dir->internal);
#endif
- BD_DEBUG(DBG_DIR, "Closed POSIX dir (%p)\n", dir);
+ BD_DEBUG(DBG_DIR, "Closed POSIX dir (%p)\n", (void*)dir);
X_FREE(dir);
}
@@ -93,7 +93,7 @@ static BD_DIR_H *dir_open_posix(const char* dirname)
{
BD_DIR_H *dir = malloc(sizeof(BD_DIR_H));
- BD_DEBUG(DBG_DIR, "Opening POSIX dir %s... (%p)\n", dirname, dir);
+ BD_DEBUG(DBG_DIR, "Opening POSIX dir %s... (%p)\n", dirname, (void*)dir);
dir->close = dir_close_posix;
dir->read = dir_read_posix;
@@ -127,7 +127,7 @@ static BD_DIR_H *dir_open_posix(const char* dirname)
}
#endif
- BD_DEBUG(DBG_DIR, "Error opening dir! (%p)\n", dir);
+ BD_DEBUG(DBG_DIR, "Error opening dir! (%p)\n", (void*)dir);
X_FREE(dir);
diff --git a/src/file/file_posix.c b/src/file/file_posix.c
index 7697a72..7179216 100644
--- a/src/file/file_posix.c
+++ b/src/file/file_posix.c
@@ -46,7 +46,7 @@ static void file_close_linux(BD_FILE_H *file)
if (file) {
fclose((FILE *)file->internal);
- BD_DEBUG(DBG_FILE, "Closed LINUX file (%p)\n", file);
+ BD_DEBUG(DBG_FILE, "Closed LINUX file (%p)\n", (void*)file);
X_FREE(file);
}
@@ -83,7 +83,7 @@ static int64_t file_read_linux(BD_FILE_H *file, uint8_t *buf, int64_t size)
return (int64_t)fread(buf, 1, (size_t)size, (FILE *)file->internal);
}
- BD_DEBUG(DBG_FILE | DBG_CRIT, "Ignoring invalid read of size %"PRId64" (%p)\n", size, file);
+ BD_DEBUG(DBG_FILE | DBG_CRIT, "Ignoring invalid read of size %"PRId64" (%p)\n", size, (void*)file);
return 0;
}
@@ -93,7 +93,7 @@ static int64_t file_write_linux(BD_FILE_H *file, const uint8_t *buf, int64_t siz
return (int64_t)fwrite(buf, 1, (size_t)size, (FILE *)file->internal);
}
- BD_DEBUG(DBG_FILE | DBG_CRIT, "Ignoring invalid write of size %"PRId64" (%p)\n", size, file);
+ BD_DEBUG(DBG_FILE | DBG_CRIT, "Ignoring invalid write of size %"PRId64" (%p)\n", size, (void*)file);
return 0;
}
@@ -102,7 +102,7 @@ static BD_FILE_H *file_open_linux(const char* filename, const char *mode)
FILE *fp = NULL;
BD_FILE_H *file = malloc(sizeof(BD_FILE_H));
- BD_DEBUG(DBG_FILE, "Opening LINUX file %s... (%p)\n", filename, file);
+ BD_DEBUG(DBG_FILE, "Opening LINUX file %s... (%p)\n", filename, (void*)file);
file->close = file_close_linux;
file->seek = file_seek_linux;
file->read = file_read_linux;
@@ -123,7 +123,7 @@ static BD_FILE_H *file_open_linux(const char* filename, const char *mode)
return file;
}
- BD_DEBUG(DBG_FILE, "Error opening file! (%p)\n", file);
+ BD_DEBUG(DBG_FILE, "Error opening file! (%p)\n", (void*)file);
X_FREE(file);
More information about the libbluray-devel
mailing list