receive packets from mrzcpd; log output supports stderr or file
This commit is contained in:
@@ -13,15 +13,8 @@ extern "C"
|
||||
|
||||
#define PACKET_MAX_LAYERS 16
|
||||
#define PACKET_LOG_ERROR(format, ...) LOG_ERROR("packet", format, ##__VA_ARGS__)
|
||||
#ifndef PACKET_LOG_ERROR
|
||||
#define PACKET_LOG_ERROR(format, ...) \
|
||||
fprintf(stderr, "ERROR (packet), " format "\n", ##__VA_ARGS__);
|
||||
#endif
|
||||
#define PACKET_LOG_DEBUG(format, ...) LOG_DEBUG("packet", format, ##__VA_ARGS__)
|
||||
#ifndef PACKET_LOG_DEBUG
|
||||
#define PACKET_LOG_DEBUG(format, ...) \
|
||||
fprintf(stderr, "DEBUG (packet), " format "\n", ##__VA_ARGS__);
|
||||
#endif
|
||||
#define PACKET_LOG_DEBUG(format, ...) (void)
|
||||
//#define PACKET_LOG_DEBUG(format, ...) LOG_DEBUG("packet", format, ##__VA_ARGS__)
|
||||
|
||||
enum layer_type
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user