00001 /* 00002 * $Id: equilibrium-data_logging.h 346460 2009-11-14 05:06:47Z ssiano $ 00003 * 00004 * This code is provided as is by Juniper Networks SDK Developer Support. 00005 * It is provided with no warranties or guarantees, and Juniper Networks 00006 * will not provide support or maintenance of this code in any fashion. 00007 * The code is provided only to help a developer better understand how 00008 * the SDK can be used. 00009 * 00010 * Copyright (c) 2008, Juniper Networks, Inc. 00011 * All rights reserved. 00012 */ 00013 00021 #ifndef __EQUILIBRIUM_DATA_LOGGING_H__ 00022 #define __EQUILIBRIUM_DATA_LOGGING_H__ 00023 00024 #include <jnx/logging.h> 00025 00026 /*** Constants ***/ 00027 00031 #define LOG(_level, _fmt...) \ 00032 logging((_level), "EQUILIBRIUM-DATA: " _fmt) 00033 00037 #define INSIST_ERR(c) if (!(c)) \ 00038 logging(LOG_EMERG, "EQUILIBRIUM-DATA: %s:%d: insist '%s' failed!", \ 00039 __FILE__, __LINE__, #c); else (void)NULL 00040 00041 /*** Data structures ***/ 00042 00043 00044 /*** GLOBAL/EXTERNAL Functions ***/ 00045 00046 #endif 00047