Commit 3e5a131e authored by Vaibhav Shrivastava's avatar Vaibhav Shrivastava

log.h and ss-log.h rebased changes

parent d966cb83
...@@ -497,6 +497,11 @@ int32_t write_file_matlab(const char *fname, const char *vname, void *data, int ...@@ -497,6 +497,11 @@ int32_t write_file_matlab(const char *fname, const char *vname, void *data, int
LOG_SS_PKT(PKT, _string, buf, len); \ LOG_SS_PKT(PKT, _string, buf, len); \
} } while(0) } } while(0)
# define LOG_NAS_P(lvl, _string, buf, len) do { \
if(g_log->log_component[PKT].level >= lvl) { \
LOG_SS_NAS_PKT(PKT, _string, buf, len); \
} } while(0)
# define LOG_MAC_P(lvl, _string, sfn, sf, mac_pack_info, buf, len) do { \ # define LOG_MAC_P(lvl, _string, sfn, sf, mac_pack_info, buf, len) do { \
if(g_log->log_component[PKT].level >= lvl) { \ if(g_log->log_component[PKT].level >= lvl) { \
LOG_SS_MAC_PKT(PKT, _string, sfn, sf, mac_pack_info, buf, len); \ LOG_SS_MAC_PKT(PKT, _string, sfn, sf, mac_pack_info, buf, len); \
......
...@@ -64,6 +64,12 @@ ...@@ -64,6 +64,12 @@
g_log->sf, _string, buf, len); \ g_log->sf, _string, buf, len); \
} while(0) } while(0)
#define LOG_SS_NAS_PKT(component, _string, buf, len) do { \
tracepoint(SSeNB, SS_PKT, \
"SS-NR-NAS-PDU", -1, g_log->sfn, \
g_log->sf, _string, buf, len); \
} while(0)
#define LOG_SS_MAC_PKT(component, _string, sfn, sf, mac_pack_info, buf, len) do { \ #define LOG_SS_MAC_PKT(component, _string, sfn, sf, mac_pack_info, buf, len) do { \
tracepoint(SSeNB, SS_MAC_PKT, \ tracepoint(SSeNB, SS_MAC_PKT, \
"SS-MAC-PDU", -1, sfn, sf, \ "SS-MAC-PDU", -1, sfn, sf, \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment