summaryrefslogtreecommitdiff
path: root/src/xine-utils/xineutils.h
diff options
context:
space:
mode:
authorDaniel Caujolle-Bert <f1rmb@users.sourceforge.net>2003-11-26 23:44:08 +0000
committerDaniel Caujolle-Bert <f1rmb@users.sourceforge.net>2003-11-26 23:44:08 +0000
commite76d60c53d666cc42408bcea5e4060ac173798dd (patch)
treea2b395870a898ad7bdfe1f49a7717499f40e1386 /src/xine-utils/xineutils.h
parent23176d5f3aaafdf90795fb847a064d0bb1b8d198 (diff)
downloadxine-lib-e76d60c53d666cc42408bcea5e4060ac173798dd.tar.gz
xine-lib-e76d60c53d666cc42408bcea5e4060ac173798dd.tar.bz2
xprintf clean pass. xprintf now log into new XINE_LOG_TRACE log buffer. scratch buffer enhancement (thanks Thibaut for the malloc tips), enlarge log buffer from 25 lines (very useless), to 150 (better).
CVS patchset: 5801 CVS date: 2003/11/26 23:44:08
Diffstat (limited to 'src/xine-utils/xineutils.h')
-rw-r--r--src/xine-utils/xineutils.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/xine-utils/xineutils.h b/src/xine-utils/xineutils.h
index 25926df17..93fc3b812 100644
--- a/src/xine-utils/xineutils.h
+++ b/src/xine-utils/xineutils.h
@@ -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: xineutils.h,v 1.65 2003/11/26 21:28:47 valtri Exp $
+ * $Id: xineutils.h,v 1.66 2003/11/26 23:44:11 f1rmb Exp $
*
*/
#ifndef XINEUTILS_H
@@ -953,29 +953,29 @@ void xine_print_trace(void);
#endif /* __GNUC__ */
#ifdef __GNUC__
- #define xprintf(xine, verbose, fmt, args...) \
- do { \
- if((xine)->verbosity >= verbose){ \
- LOG_MODULE_STRING \
- printf(fmt, ##args); \
- } \
+ #define xprintf(xine, verbose, fmt, args...) \
+ do { \
+ if((xine)->verbosity >= verbose){ \
+ LOG_MODULE_STRING \
+ xine_log(xine, XINE_LOG_TRACE, fmt, ##args); \
+ } \
} while(0)
#else
#ifdef _MSC_VER
- #define xprintf(xine, verbose, fmtargs) \
- do { \
- if((xine)->verbosity >= verbose){ \
- LOG_MODULE_STRING \
- printf("%s", fmtargs); \
- } \
+ #define xprintf(xine, verbose, fmtargs) \
+ do { \
+ if((xine)->verbosity >= verbose){ \
+ LOG_MODULE_STRING \
+ xine_log(xine, XINE_LOG_TRACE, fmtargs); \
+ } \
} while(0)
#else
- #define xprintf(xine, verbose, ...) \
- do { \
- if((xine)->verbosity >= verbose){ \
- LOG_MODULE_STRING \
- printf(__VA_ARGS__); \
- } \
+ #define xprintf(xine, verbose, ...) \
+ do { \
+ if((xine)->verbosity >= verbose){ \
+ LOG_MODULE_STRING \
+ xine_log(xine, XINE_LOG_TRACE, __VA_ARGS__); \
+ } \
} while(0)
#endif /* _MSC_VER */
#endif /* __GNUC__ */