Check for non-zero payload in log

master
Ismael Gomez 7 years ago
parent 36358fa34b
commit 5eeaf52990

@ -126,7 +126,7 @@ void log_filter::all_log(srslte::LOG_LEVEL_ENUM level,
ss << std::endl;
}
if (hex_limit > 0) {
if (hex_limit > 0 && hex && size > 0) {
ss << hex_string(hex, size);
}
str_ptr s_ptr(new std::string(ss.str()));

Loading…
Cancel
Save