From: Uwe Hermann Date: Fri, 28 Aug 2015 14:10:15 +0000 (+0200) Subject: session.c: Fix key order. X-Git-Tag: libsigrok-0.4.0~378 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=55c9f09dbc7edd24b0da8dda8837aff6a932e3c5;p=libsigrok.git session.c: Fix key order. --- diff --git a/src/session.c b/src/session.c index 2ab3f7eb..605ab2cc 100644 --- a/src/session.c +++ b/src/session.c @@ -667,12 +667,15 @@ static void datafeed_dump(const struct sr_datafeed_packet *packet) case SR_DF_HEADER: sr_dbg("bus: Received SR_DF_HEADER packet."); break; - case SR_DF_TRIGGER: - sr_dbg("bus: Received SR_DF_TRIGGER packet."); + case SR_DF_END: + sr_dbg("bus: Received SR_DF_END packet."); break; case SR_DF_META: sr_dbg("bus: Received SR_DF_META packet."); break; + case SR_DF_TRIGGER: + sr_dbg("bus: Received SR_DF_TRIGGER packet."); + break; case SR_DF_LOGIC: logic = packet->payload; sr_dbg("bus: Received SR_DF_LOGIC packet (%" PRIu64 " bytes, " @@ -683,20 +686,17 @@ static void datafeed_dump(const struct sr_datafeed_packet *packet) sr_dbg("bus: Received SR_DF_ANALOG packet (%d samples).", analog->num_samples); break; - case SR_DF_ANALOG2: - analog2 = packet->payload; - sr_dbg("bus: Received SR_DF_ANALOG2 packet (%d samples).", - analog2->num_samples); - break; - case SR_DF_END: - sr_dbg("bus: Received SR_DF_END packet."); - break; case SR_DF_FRAME_BEGIN: sr_dbg("bus: Received SR_DF_FRAME_BEGIN packet."); break; case SR_DF_FRAME_END: sr_dbg("bus: Received SR_DF_FRAME_END packet."); break; + case SR_DF_ANALOG2: + analog2 = packet->payload; + sr_dbg("bus: Received SR_DF_ANALOG2 packet (%d samples).", + analog2->num_samples); + break; default: sr_dbg("bus: Received unknown packet type: %d.", packet->type); break;