/* Copyright (c) 2015, HTC Corporation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #ifndef _HTC_NET_DEBUG_H #define _HTC_NET_DEBUG_H #include #include #include #include #include #if 0 #include #endif #ifdef CONFIG_HTC_NET_DEBUG extern int htc_net_debug_dump; extern int htc_net_debug_print; extern int htc_net_debug_enable; extern void net_dbg_log_event(const char * event, ...); extern void net_dumplog(void); #define NET_DEBUG(fmt, args...) \ do{ \ if(htc_net_debug_enable) \ net_dbg_log_event("[NET]" fmt, ##args); \ } while(0) #else static inline void net_dumplog(void) { } #define NET_DEBUG(fmt, args...) do { } while(0) #endif #endif /* end of _HTC_NET_DEBUG_H */