diff options
author | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2003-11-26 19:43:26 +0000 |
---|---|---|
committer | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2003-11-26 19:43:26 +0000 |
commit | 3050d97eb83cfdfb4d04a51231acba47e6addf1c (patch) | |
tree | 4337d69086ce7d870214e7e5f6a028f8b417521e /src/xine-utils/xine_buffer.c | |
parent | ae2a2a8e08ab3140d5c7ee3a5f33e7db81f76b09 (diff) | |
download | xine-lib-3050d97eb83cfdfb4d04a51231acba47e6addf1c.tar.gz xine-lib-3050d97eb83cfdfb4d04a51231acba47e6addf1c.tar.bz2 |
lprintf cleanup, pass I.
CVS patchset: 5796
CVS date: 2003/11/26 19:43:26
Diffstat (limited to 'src/xine-utils/xine_buffer.c')
-rw-r--r-- | src/xine-utils/xine_buffer.c | 53 |
1 files changed, 18 insertions, 35 deletions
diff --git a/src/xine-utils/xine_buffer.c b/src/xine-utils/xine_buffer.c index 47d580439..42623895b 100644 --- a/src/xine-utils/xine_buffer.c +++ b/src/xine-utils/xine_buffer.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xine_buffer.c,v 1.4 2003/09/16 02:12:54 storri Exp $ + * $Id: xine_buffer.c,v 1.5 2003/11/26 19:43:38 f1rmb Exp $ * * * generic dynamic buffer functions. The goals @@ -53,9 +53,14 @@ #include <stdio.h> #include <string.h> #include <inttypes.h> -#include "xineutils.h" +#define LOG_MODULE "xine_buffer" +#define LOG_VERBOSE +/* #define LOG +*/ + +#include "xineutils.h" #define CHECKS @@ -133,9 +138,7 @@ void *_xine_buffer_free(void *buf) { #ifdef CHECKS if (!buf) { -#ifdef LOG - printf("xine_buffer_free: warning: got NULL pointer\n"); -#endif + lprintf("xine_buffer_free: warning: got NULL pointer\n"); return NULL; } CHECK_MAGIC(buf); @@ -155,9 +158,7 @@ void *xine_buffer_dup(void *buf) { #ifdef CHECKS if (!buf) { -#ifdef LOG - printf("xine_buffer_dup: warning: got NULL pointer\n"); -#endif + lprintf("xine_buffer_dup: warning: got NULL pointer\n"); return NULL; } CHECK_MAGIC(buf); @@ -180,9 +181,7 @@ void *_xine_buffer_copyin(void *buf, int index, const void *data, int len) { #ifdef CHECKS if (!buf || !data) { -#ifdef LOG - printf("xine_buffer_copyin: warning: got NULL pointer\n"); -#endif + lprintf("xine_buffer_copyin: warning: got NULL pointer\n"); return NULL; } CHECK_MAGIC(buf); @@ -204,9 +203,7 @@ void xine_buffer_copyout(void *buf, int index, void *data, int len) { #ifdef CHECKS if (!buf || !data) { -#ifdef LOG - printf("xine_buffer_copyout: warning: got NULL pointer\n"); -#endif + lprintf("xine_buffer_copyout: warning: got NULL pointer\n"); return; } CHECK_MAGIC(buf); @@ -231,9 +228,7 @@ void *_xine_buffer_set(void *buf, int index, uint8_t b, int len) { #ifdef CHECKS if (!buf) { -#ifdef LOG - printf("xine_buffer_set: warning: got NULL pointer\n"); -#endif + lprintf("xine_buffer_set: warning: got NULL pointer\n"); return NULL; } CHECK_MAGIC(buf); @@ -256,9 +251,7 @@ void *_xine_buffer_strcat(void *buf, char *data) { #ifdef CHECKS if (!buf || !data) { -#ifdef LOG - printf("xine_buffer_strcat: warning: got NULL pointer\n"); -#endif + lprintf("xine_buffer_strcat: warning: got NULL pointer\n"); return NULL; } CHECK_MAGIC(buf); @@ -280,9 +273,7 @@ void *_xine_buffer_strcpy(void *buf, int index, char *data) { #ifdef CHECKS if (!buf || !data) { -#ifdef LOG - printf("xine_buffer_strcpy: warning: got NULL pointer\n"); -#endif + lprintf("xine_buffer_strcpy: warning: got NULL pointer\n"); return NULL; } CHECK_MAGIC(buf); @@ -303,9 +294,7 @@ void *_xine_buffer_strcpy(void *buf, int index, char *data) { char *xine_buffer_strchr(void *buf, int ch) { #ifdef CHECKS if (!buf) { -#ifdef LOG - printf("xine_buffer_get_size: warning: got NULL pointer\n"); -#endif + lprintf("xine_buffer_get_size: warning: got NULL pointer\n"); return 0; } CHECK_MAGIC(buf); @@ -321,9 +310,7 @@ int xine_buffer_get_size(void *buf) { #ifdef CHECKS if (!buf) { -#ifdef LOG - printf("xine_buffer_get_size: warning: got NULL pointer\n"); -#endif + lprintf("xine_buffer_get_size: warning: got NULL pointer\n"); return 0; } CHECK_MAGIC(buf); @@ -342,10 +329,8 @@ int xine_buffer_get_size(void *buf) { void *_xine_buffer_ensure_size(void *buf, int size) { #ifdef CHECKS - if (!buf) { -#ifdef LOG - printf("xine_buffer_ensure_size: warning: got NULL pointer\n"); -#endif + if (!buf) { + lprintf("xine_buffer_ensure_size: warning: got NULL pointer\n"); return 0; } CHECK_MAGIC(buf); @@ -355,5 +340,3 @@ void *_xine_buffer_ensure_size(void *buf, int size) { return buf; } - - |