Changeset 9ff5737


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.

Files:
3 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
  • protocols/oscar/msgcookie.c

    rb6a2373 r9ff5737  
    131131}
    132132
    133 #if 0 /* debugging feature */
    134 int aim_dumpcookie(aim_msgcookie_t *cookie)
    135 {
    136 
    137         if (!cookie)
    138                 return -EINVAL;
    139 
    140         printf("\tCookie at %p: %d/%s with %p, next %p\n",
    141                         cookie, cookie->type, cookie->cookie,
    142                         cookie->data, cookie->next);
    143 
    144         return 0;
    145 }
    146 #endif
    147 
    148133/**
    149134 * aim_cookie_free - free an aim_msgcookie_t struct
Note: See TracChangeset for help on using the changeset viewer.