Changeset 3607:a5296e3cfc85 in roaraudio
- Timestamp:
- 03/01/10 01:19:29 (14 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
include/libroar/debug.h
r3606 r3607 2 2 3 3 /* 4 * Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2009 4 * Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2009-2010 5 5 * 6 6 * This file is part of libroar a part of RoarAudio, … … 58 58 struct roar_vio_calls * roar_debug_get_stderr(void); 59 59 60 void roar_debug_msg_simple(const char *format, ...); 61 60 62 #endif 61 63 -
libroar/debug.c
r3606 r3607 2 2 3 3 /* 4 * Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2009 4 * Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2009-2010 5 5 * 6 6 * This file is part of libroar a part of RoarAudio, … … 65 65 } 66 66 67 void roar_debug_msg_simple(const char *format, ...) { 68 struct roar_vio_calls * vio; 69 va_list ap; 70 int ret; 71 char buf[8192]; 72 73 if ( (vio = roar_debug_get_stderr()) == NULL ) 74 return; 75 76 va_start(ap, format); 77 ret = vsnprintf(buf, 8192, format, ap); 78 va_end(ap); 79 80 roar_vio_write(vio, buf, ret); 81 } 82 67 83 //ll
Note: See TracChangeset
for help on using the changeset viewer.