more Troubleshoot "no more data in UDP packet"

This commit is contained in:
Michael Davidsaver
2019-05-21 08:51:00 -07:00
parent ecee708d3a
commit dfeb9fd5a5
4 changed files with 20 additions and 19 deletions
+3 -7
View File
@@ -2998,13 +2998,9 @@ public:
{
if (command < 0 || command >= (int8)m_handlerTable.size())
{
LOG(logLevelError,
"Invalid (or unsupported) command: %x.", (0xFF&command));
if(pvAccessIsLoggable(logLevelError)) {
std::cerr<<"Invalid PVA header "<<hex<<(int)(0xFF&command)
<<", its payload buffer\n"
<<HexDump(*payloadBuffer, payloadSize);
if(IS_LOGGABLE(logLevelError)) {
std::cerr<<"Invalid (or unsupported) command: "<<std::hex<<(int)(0xFF&command)<<"\n"
<<HexDump(*payloadBuffer, payloadSize).limit(256u);
}
return;
}