output/srzip: Minor whitespace fixes.

This commit is contained in:
Uwe Hermann 2016-03-15 18:40:50 +01:00
parent 2dc4081540
commit 74a9c0adc0
1 changed files with 16 additions and 16 deletions

View File

@ -110,15 +110,15 @@ static int zip_create(const struct sr_output *o)
for (l = o->sdi->channels; l; l = l->next) { for (l = o->sdi->channels; l; l = l->next) {
ch = l->data; ch = l->data;
switch (ch->type) { switch (ch->type) {
case SR_CHANNEL_LOGIC: case SR_CHANNEL_LOGIC:
logic_channels++; logic_channels++;
break; break;
case SR_CHANNEL_ANALOG: case SR_CHANNEL_ANALOG:
if (outc->min_analog_index == -1 || if (outc->min_analog_index == -1 ||
ch->index < outc->min_analog_index) ch->index < outc->min_analog_index)
outc->min_analog_index = ch->index; outc->min_analog_index = ch->index;
analog_channels++; analog_channels++;
break; break;
} }
} }
@ -128,13 +128,13 @@ static int zip_create(const struct sr_output *o)
for (l = o->sdi->channels; l; l = l->next) { for (l = o->sdi->channels; l; l = l->next) {
ch = l->data; ch = l->data;
switch (ch->type) { switch (ch->type) {
case SR_CHANNEL_LOGIC: case SR_CHANNEL_LOGIC:
s = g_strdup_printf("probe%d", ch->index + 1); s = g_strdup_printf("probe%d", ch->index + 1);
break; break;
case SR_CHANNEL_ANALOG: case SR_CHANNEL_ANALOG:
s = g_strdup_printf("analog%d", s = g_strdup_printf("analog%d",
ch->index - outc->min_analog_index + 1); ch->index - outc->min_analog_index + 1);
break; break;
} }
if (ch->enabled) if (ch->enabled)
g_key_file_set_string(meta, devgroup, s, ch->name); g_key_file_set_string(meta, devgroup, s, ch->name);