mirror of https://github.com/PentHertz/srsLTE.git
Check for non-zero payload in log
This commit is contained in:
parent
36358fa34b
commit
5eeaf52990
|
@ -126,7 +126,7 @@ void log_filter::all_log(srslte::LOG_LEVEL_ENUM level,
|
||||||
ss << std::endl;
|
ss << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hex_limit > 0) {
|
if (hex_limit > 0 && hex && size > 0) {
|
||||||
ss << hex_string(hex, size);
|
ss << hex_string(hex, size);
|
||||||
}
|
}
|
||||||
str_ptr s_ptr(new std::string(ss.str()));
|
str_ptr s_ptr(new std::string(ss.str()));
|
||||||
|
|
Loading…
Reference in New Issue