From: Bert Vermeulen Date: Sat, 4 Oct 2014 00:24:41 +0000 (+0200) Subject: input/csv: Fix size_t printing. X-Git-Tag: libsigrok-0.4.0~889 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=4ab01c3564ddec604d0b6a9daf76fcba277da287;p=libsigrok.git input/csv: Fix size_t printing. --- diff --git a/src/input/csv.c b/src/input/csv.c index 5b5a8f31..180ff3df 100644 --- a/src/input/csv.c +++ b/src/input/csv.c @@ -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); }