debug.h File Reference

#include "libbb_udhcp.h"
#include <stdio.h>

Include dependency graph for debug.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define LOG_EMERG   "EMERGENCY!"
#define LOG_ALERT   "ALERT!"
#define LOG_CRIT   "critical!"
#define LOG_WARNING   "warning"
#define LOG_ERR   "error"
#define LOG_INFO   "info"
#define LOG_DEBUG   "debug"
#define LOG(level, str, args...)
#define OPEN_LOG(name)   do {;} while(0)
#define CLOSE_LOG()   do {;} while(0)
#define DEBUG(level, str, args...)   do {;} while(0)


Define Documentation

 
#define CLOSE_LOG (  )     do {;} while(0)

Definition at line 30 of file debug.h.

#define DEBUG ( level,
str,
args...   )     do {;} while(0)

Definition at line 38 of file debug.h.

Referenced by arpping(), get_packet(), get_raw_packet(), listen_socket(), raw_packet(), raw_socket(), read_interface(), run_script(), and udhcp().

#define LOG ( level,
str,
args...   ) 

Value:

do { printf("%s, ", level); \
                                printf(str, ## args); \
                                printf("\n"); } while(0)

Definition at line 26 of file debug.h.

Referenced by arpping(), get_packet(), get_raw_packet(), pidfile_acquire(), random_xid(), read_interface(), run_script(), send_discover(), send_release(), send_renew(), send_selecting(), and udhcp().

#define LOG_ALERT   "ALERT!"

Definition at line 20 of file debug.h.

#define LOG_CRIT   "critical!"

Definition at line 21 of file debug.h.

#define LOG_DEBUG   "debug"

Definition at line 25 of file debug.h.

Referenced by send_discover(), send_release(), send_renew(), and send_selecting().

#define LOG_EMERG   "EMERGENCY!"

Definition at line 19 of file debug.h.

#define LOG_ERR   "error"

Definition at line 23 of file debug.h.

Referenced by arpping(), get_packet(), get_raw_packet(), listen_socket(), pidfile_acquire(), raw_packet(), raw_socket(), read_interface(), run_script(), and udhcp().

#define LOG_INFO   "info"

Definition at line 24 of file debug.h.

Referenced by arpping(), get_packet(), get_raw_packet(), listen_socket(), raw_socket(), read_interface(), run_script(), and udhcp().

#define LOG_WARNING   "warning"

Definition at line 22 of file debug.h.

Referenced by random_xid().

#define OPEN_LOG ( name   )     do {;} while(0)

Definition at line 29 of file debug.h.

Referenced by udhcp().


Generated on Tue Jan 15 12:24:46 2008 for Dynamics 0.8.1.Dynamo.1 by  doxygen 1.5.1