vg_log.buffer_line_current = 0;
}
-static void vg_log_write( FILE *file, const char *prefix,
+VG_STATIC void vg_log_write( FILE *file, const char *prefix,
const char *fmt, va_list args )
{
vg_mutex_lock( &log_print_mutex );
char buffer[512];
int i, j;
- for( i = 0; i < vg_list_size( buffer ); i ++ )
+ for( i=0; i<vg_list_size( buffer ); i ++ )
{
if( prefix[i] )
buffer[i] = prefix[i];
vg_mutex_unlock( &log_print_mutex );
}
-static void vg_log_init(void)
+VG_STATIC void vg_log_init(void)
{
vg_mutex_init( &log_print_mutex );
}
#define VG_LOGX( NAME, PIPE, PFX ) \
-static void NAME(const char *fmt, ...) \
+VG_STATIC void NAME(const char *fmt, ...) \
{ \
va_list args; \
va_start( args, fmt ); \