]> sigrok.org Git - libsigrok.git/commitdiff
input/csv: Fix size_t printing.
authorBert Vermeulen <redacted>
Sat, 4 Oct 2014 00:24:41 +0000 (02:24 +0200)
committerBert Vermeulen <redacted>
Sat, 4 Oct 2014 08:39:11 +0000 (10:39 +0200)
src/input/csv.c

index 5b5a8f31682ed2a404590de48abdd0c091ec1175..180ff3df264c6aaac50f43c69d1f710748e78115 100644 (file)
@@ -557,7 +557,7 @@ static int initial_parse(const struct sr_input *in, GString *buf)
                if (inc->header && inc->multi_column_mode && strlen(columns[i]))
                        g_string_assign(channel_name, columns[i]);
                else
-                       g_string_printf(channel_name, "%lu", i);
+                       g_string_printf(channel_name, "%zu", i);
                ch = sr_channel_new(i, SR_CHANNEL_LOGIC, TRUE, channel_name->str);
                in->sdi->channels = g_slist_append(in->sdi->channels, ch);
        }