Changeset 9ff5737 for lib


Ignore:
Timestamp:
2007-11-29T21:55:14Z (17 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
4306d8b, 94d52d64
Parents:
b6a2373
Message:

printf() in daemons considered harmful.

Location:
lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lib/events.h

    rb6a2373 r9ff5737  
    4545#include <gmodule.h>
    4646
    47 /* The conditions you can pass to gaim_input_add()/that will be passed to
     47/* The conditions you can pass to b_input_add()/that will be passed to
    4848   the given callback function. */
    4949typedef enum {
     
    5858#define GAIM_ERR_COND   (G_IO_HUP | G_IO_ERR | G_IO_NVAL)
    5959
    60 // #define event_debug( x... ) printf( x )
     60/* #define event_debug( x... ) printf( x ) */
    6161#define event_debug( x... )
    6262
  • lib/events_libevent.c

    rb6a2373 r9ff5737  
    3232#include <unistd.h>
    3333#include <sys/types.h>
    34 #include "proxy.h"
    35 
    3634#include <sys/time.h>
    3735#include <event.h>
     36#include "proxy.h"
    3837
    3938static void b_main_restart();
    40 
    4139static guint id_next = 1;
    4240static GHashTable *id_hash;
     
    9391                }
    9492               
    95                 printf( "New event loop.\n" );
     93                event_debug( "New event loop.\n" );
    9694        }
    9795}
     
    104102        event_base_loopexit( leh, &tv );
    105103       
    106         printf( "b_main_restart()\n" );
     104        event_debug( "b_main_restart()\n" );
    107105}
    108106
Note: See TracChangeset for help on using the changeset viewer.