2015-04-15 13:42:43 +00:00
|
|
|
#include "sysdep/config.h"
|
2015-05-19 08:47:14 +00:00
|
|
|
#include "lib/event.c" /* REMOVE ME */
|
2015-04-03 10:52:44 +00:00
|
|
|
#include "lib/ip.c" /* REMOVE ME */
|
|
|
|
#include "lib/resource.c" /* REMOVE ME */
|
|
|
|
#include "lib/printf.c" /* REMOVE ME */
|
|
|
|
#include "lib/xmalloc.c" /* REMOVE ME */
|
|
|
|
#include "lib/bitops.c" /* REMOVE ME */
|
2015-05-19 08:47:14 +00:00
|
|
|
#include "lib/mempool.c" /* REMOVE ME */
|
2015-04-03 10:52:44 +00:00
|
|
|
|
2015-05-19 08:47:14 +00:00
|
|
|
#define bug(msg, ...) debug("BUG: " msg, ##__VA_ARGS__)
|
|
|
|
#define log_msg(msg, ...) debug("LOG_MSG: " msg, ##__VA_ARGS__)
|
2015-04-23 13:18:27 +00:00
|
|
|
|
2015-04-03 10:52:44 +00:00
|
|
|
void
|
|
|
|
debug(const char *msg, ...)
|
|
|
|
{
|
|
|
|
va_list argptr;
|
|
|
|
va_start(argptr, msg);
|
|
|
|
vfprintf(stderr, msg, argptr);
|
|
|
|
va_end(argptr);
|
|
|
|
};
|
|
|
|
|
|
|
|
void
|
|
|
|
die(const char *msg, ...)
|
|
|
|
{
|
|
|
|
va_list argptr;
|
|
|
|
va_start(argptr, msg);
|
|
|
|
vfprintf(stderr, msg, argptr);
|
|
|
|
va_end(argptr);
|
|
|
|
exit(3);
|
|
|
|
};
|
2015-04-20 14:50:51 +00:00
|
|
|
|
|
|
|
void
|
|
|
|
io_log_event(void *hook, void *data)
|
|
|
|
{
|
|
|
|
bt_debug("This is io_log_event mockup. \n");
|
|
|
|
};
|
2015-05-19 08:47:14 +00:00
|
|
|
|
2015-05-26 10:40:40 +00:00
|
|
|
void
|
|
|
|
mrt_dump_message(int file_descriptor, u16 type, u16 subtype, byte *buf, u32 len)
|
|
|
|
{
|
|
|
|
debug("mrt_dump_message: file_descriptor %d, type %02X, subtype %02X, %s (%u) \n", file_descriptor, type, subtype, buf, len);
|
|
|
|
}
|
|
|
|
|
2015-05-19 08:47:14 +00:00
|
|
|
#include "lib/slab.c" /* REMOVE ME */
|