EventManager fixes and tweaks
1. Using sif::info consistently now 2. Fix for printf support: Event translation is printed now as well
This commit is contained in:
parent
ac146339a2
commit
1515d59432
@ -157,7 +157,7 @@ void EventManager::printUtility(sif::OutputTypes printType, EventMessage *messag
|
|||||||
message->getReporter() << std::setfill(' ') << std::dec;
|
message->getReporter() << std::setfill(' ') << std::dec;
|
||||||
}
|
}
|
||||||
sif::info << " reported event with ID " << message->getEventId() << std::endl;
|
sif::info << " reported event with ID " << message->getEventId() << std::endl;
|
||||||
sif::debug << translateEvents(message->getEvent()) << " | " <<std::hex << "P1 Hex: 0x" <<
|
sif::info << translateEvents(message->getEvent()) << " | " <<std::hex << "P1 Hex: 0x" <<
|
||||||
message->getParameter1() << " | P1 Dec: " << std::dec << message->getParameter1() <<
|
message->getParameter1() << " | P1 Dec: " << std::dec << message->getParameter1() <<
|
||||||
std::hex << " | P2 Hex: 0x" << message->getParameter2() << " | P2 Dec: " <<
|
std::hex << " | P2 Hex: 0x" << message->getParameter2() << " | P2 Dec: " <<
|
||||||
std::dec << message->getParameter2() << std::endl;
|
std::dec << message->getParameter2() << std::endl;
|
||||||
@ -170,9 +170,10 @@ void EventManager::printUtility(sif::OutputTypes printType, EventMessage *messag
|
|||||||
sif::printInfo("Event Manager: Reporter ID 0x%08x reported event with ID %d\n",
|
sif::printInfo("Event Manager: Reporter ID 0x%08x reported event with ID %d\n",
|
||||||
message->getReporter(), message->getEventId());
|
message->getReporter(), message->getEventId());
|
||||||
}
|
}
|
||||||
sif::printInfo("P1 Hex: 0x%x | P1 Dec: %d | P2 Hex: 0x%x | P2 Dec: %d\n",
|
|
||||||
message->getParameter1(), message->getParameter1(),
|
sif::printInfo("%s | P1 Hex: 0x%x | P1 Dec: %d | P2 Hex: 0x%x | P2 Dec: %d\n",
|
||||||
message->getParameter2(), message->getParameter2());
|
translateEvents(message->getEvent()), message->getParameter1(),
|
||||||
|
message->getParameter1(), message->getParameter2(), message->getParameter2());
|
||||||
#endif /* FSFW_CPP_OSTREAM_ENABLED == 0 */
|
#endif /* FSFW_CPP_OSTREAM_ENABLED == 0 */
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user