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-engine/scratch.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-engine/scratch.c')
-rw-r--r-- | src/xine-engine/scratch.c | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/src/xine-engine/scratch.c b/src/xine-engine/scratch.c index 55cd0d281..4a34a0ad2 100644 --- a/src/xine-engine/scratch.c +++ b/src/xine-engine/scratch.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: scratch.c,v 1.10 2003/11/11 18:45:01 f1rmb Exp $ + * $Id: scratch.c,v 1.11 2003/11/26 19:43:38 f1rmb Exp $ * * top-level xine functions * @@ -31,21 +31,20 @@ #include <stdarg.h> #include <string.h> /* For memset */ -#include "scratch.h" -#include "xineutils.h" - +#define LOG_MODULE "scratch" +#define LOG_VERBOSE /* #define LOG */ +#include "scratch.h" +#include "xineutils.h" + static void scratch_printf (scratch_buffer_t *this, const char *format, va_list argp) { vsnprintf (this->lines[this->cur], 1023, format, argp); -#ifdef LOG - printf ("scratch: printing format %s to line %d\n", - format, this->cur); -#endif + lprintf ("printing format %s to line %d\n", format, this->cur); this->cur = (this->cur + 1) % this->num_lines; } @@ -61,9 +60,7 @@ static const char **scratch_get_content (scratch_buffer_t *this) { this->ordered[i] = this->lines[j]; -#ifdef LOG - printf ("scratch: line %d contains >%s<\n", i , this->lines[j]); -#endif + lprintf ("line %d contains >%s<\n", i , this->lines[j]); } |