Useful for debugging
| 558 | |
| 559 | // Useful for debugging |
| 560 | std::string PacketMessageFlagStr(uint32_t msgno_field) |
| 561 | { |
| 562 | using namespace std; |
| 563 | |
| 564 | stringstream out; |
| 565 | |
| 566 | static const char* const boundary[] = {"PB_SUBSEQUENT", "PB_LAST", "PB_FIRST", "PB_SOLO"}; |
| 567 | static const char* const order[] = {"ORD_RELAXED", "ORD_REQUIRED"}; |
| 568 | static const char* const crypto[] = {"EK_NOENC", "EK_EVEN", "EK_ODD", "EK*ERROR"}; |
| 569 | static const char* const rexmit[] = {"SN_ORIGINAL", "SN_REXMIT"}; |
| 570 | |
| 571 | out << boundary[MSGNO_PACKET_BOUNDARY::unwrap(msgno_field)] << " "; |
| 572 | out << order[MSGNO_PACKET_INORDER::unwrap(msgno_field)] << " "; |
| 573 | out << crypto[MSGNO_ENCKEYSPEC::unwrap(msgno_field)] << " "; |
| 574 | out << rexmit[MSGNO_REXMIT::unwrap(msgno_field)]; |
| 575 | |
| 576 | return out.str(); |
| 577 | } |
| 578 | |
| 579 | inline void SprintSpecialWord(std::ostream& os, int32_t val) |
| 580 | { |
no test coverage detected