better unit test logging

This commit is contained in:
rusefi 2020-07-19 14:17:15 -04:00
parent 5a10e8adac
commit fbfef8290c
3 changed files with 4 additions and 3 deletions

View File

@ -255,6 +255,7 @@ void handleFuelInjectionEvent(int injEventIndex, InjectionEvent *event,
if (event->isScheduled) {
#if EFI_PRINTF_FUEL_DETAILS
if (printFuelDebug) {
InjectorOutputPin *output = event->outputs[0];
printf("handleFuelInjectionEvent still used1 %s %d\r\n", output->name, (int)getTimeNowUs());
}
#endif /*EFI_PRINTF_FUEL_DETAILS */

View File

@ -463,7 +463,7 @@ void TriggerState::decodeTriggerEvent(TriggerWaveform *triggerShape, const Trigg
// scheduleMsg(&logger, "ratio %.2f", 1.0 * toothDurations[0]/ shaftPositionState->toothDurations[1]);
#else
if (printTriggerDebug) {
printf("ratio %.2f: current=%d previous=%d\r\n", 1.0 * toothDurations[0] / toothDurations[1],
printf("decodeTriggerEvent ratio %.2f: current=%d previous=%d\r\n", 1.0 * toothDurations[0] / toothDurations[1],
toothDurations[0], toothDurations[1]);
}
#endif
@ -599,7 +599,7 @@ void TriggerState::decodeTriggerEvent(TriggerWaveform *triggerShape, const Trigg
#if EFI_UNIT_TEST
if (printTriggerDebug) {
printf("isSynchronizationPoint=%d index=%d size=%d\r\n",
printf("decodeTriggerEvent isSynchronizationPoint=%d index=%d size=%d\r\n",
isSynchronizationPoint,
currentCycle.current_index,
triggerShape->getSize());

View File

@ -52,7 +52,7 @@ void TriggerStimulatorHelper::feedSimulatedEvent(const TriggerStateCallback trig
// pin_state_t new3rdWheelState = multiChannelStateSequence->getChannelState(2, stateIndex);
if (printTriggerDebug) {
printf("feedSimulatedEvent: %d>%d primary %d>%d secondary %d>%d\r\n", prevIndex, stateIndex, primaryWheelState, newPrimaryWheelState,
printf("TriggerStimulator: simulatedEvent: %d>%d primary %d>%d secondary %d>%d\r\n", prevIndex, stateIndex, primaryWheelState, newPrimaryWheelState,
secondaryWheelState, newSecondaryWheelState );
}
#endif /* EFI_UNIT_TEST */