Adjust session debugging to the new SR_DF_META packets.

This commit is contained in:
Bert Vermeulen 2013-01-20 16:37:23 +01:00
parent fbf394c617
commit c71bac3b98
1 changed files with 2 additions and 7 deletions

View File

@ -392,20 +392,15 @@ static void datafeed_dump(const struct sr_datafeed_packet *packet)
case SR_DF_TRIGGER: case SR_DF_TRIGGER:
sr_dbg("bus: received SR_DF_TRIGGER"); sr_dbg("bus: received SR_DF_TRIGGER");
break; break;
case SR_DF_META_LOGIC: case SR_DF_META:
sr_dbg("bus: received SR_DF_META_LOGIC"); sr_dbg("bus: received SR_DF_META");
break; break;
case SR_DF_LOGIC: case SR_DF_LOGIC:
logic = packet->payload; logic = packet->payload;
/* TODO: Check for logic != NULL. */
sr_dbg("bus: received SR_DF_LOGIC %" PRIu64 " bytes", logic->length); sr_dbg("bus: received SR_DF_LOGIC %" PRIu64 " bytes", logic->length);
break; break;
case SR_DF_META_ANALOG:
sr_dbg("bus: received SR_DF_META_ANALOG");
break;
case SR_DF_ANALOG: case SR_DF_ANALOG:
analog = packet->payload; analog = packet->payload;
/* TODO: Check for analog != NULL. */
sr_dbg("bus: received SR_DF_ANALOG %d samples", analog->num_samples); sr_dbg("bus: received SR_DF_ANALOG %d samples", analog->num_samples);
break; break;
case SR_DF_END: case SR_DF_END: