}
rc = bootenv_list_to_num_vector(raw_start_list,
- &(res->starts_size), &(res->starts));
+ (void *) &(res->starts_size),
+ &(res->starts));
if (rc != 0) {
EBUF_PFI("Cannot create numeric value array: %s", tmp_str);
goto err;
goto err;
}
- rc = bootenv_list_to_num_vector(ubi_id_list, &(res->ids_size),
+ rc = bootenv_list_to_num_vector(ubi_id_list, (void *) &(res->ids_size),
&(res->ids));
if (rc != 0) {
EBUF_PFI("Cannot create numeric value array: %s", tmp_str);
EBUF_PFI("Cannot translate PFI value: %s", tmp_str);
goto err;
}
- rc = bootenv_list_to_vector(ubi_name_list, &(res->names_size),
+ rc = bootenv_list_to_vector(ubi_name_list, (void *) &(res->names_size),
&(tmp_names));
if (rc != 0) {
EBUF_PFI("Cannot create string array: %s", tmp_str);
(crc != ubi32_to_cpu(cur->outer.hdr_crc)))
fprintf(fpdata, "# ");
- fprintf(fpdata, "%u %llu %llu", count,
- ubi64_to_cpu(cur->outer.ec),
- erase_counts[count]);
+ fprintf(fpdata, "%zu %llu %llu", count,
+ (unsigned long long) ubi64_to_cpu(cur->outer.ec),
+ (unsigned long long) erase_counts[count]);
if (ubi32_to_cpu(cur->outer.magic) != UBI_EC_HDR_MAGIC)
fprintf(fpdata, " ## bad magic: %08x",
if ((count % EC_X_INT) == 0) {
if (count > 0)
fprintf(fpplot, ", ");
- fprintf(fpplot, "%d", count);
+ fprintf(fpplot, "%zd", count);
}
cur = cur->next;
fprintf(fpplot, ")\n");
fprintf(fpplot, "set ylabel \"erase count\"\n");
- fprintf(fpplot, "set xrange [-1:%u]\n", eraseblocks + 1);
+ fprintf(fpplot, "set xrange [-1:%zu]\n", eraseblocks + 1);
fprintf(fpplot, "# set yrange [-1:%llu]\n",
- erase_counts[eraseblocks - 1] + 1);
+ (unsigned long long) erase_counts[eraseblocks - 1] + 1);
fprintf(fpplot, "plot \"%s\" u 1:2 t \"unsorted: %s\" with boxes\n",
FN_EH_DATA, FN_EH_DATA);
fprintf(fpplot, "# replot \"%s\" u 1:3 t \"sorted: %s\" with lines\n",
if ((y1 == -1) || (y2 == -1))
return -1;
- fprintf(fpdata, "%u %u %u %u %u %u %u\n",
+ fprintf(fpdata, "%zu %u %u %u %u %u %u\n",
count,
ubi32_to_cpu(cur->inner.vol_id),
ubi32_to_cpu(cur->inner.lnum),
fprintf(fpplot, ", ");
if (step != ubi32_to_cpu(cur->inner.vol_id)) {
step = ubi32_to_cpu(cur->inner.vol_id);
- fprintf(fpplot, "\"%d\" %d 0", step, count);
+ fprintf(fpplot, "\"%zd\" %zd 0", step, count);
}
else
- fprintf(fpplot, "\"%d\" %d 1",
+ fprintf(fpplot, "\"%d\" %zd 1",
ubi32_to_cpu(cur->inner.lnum), count);
cur = cur->next;
count++;
y1 = norm_index(leb_versions[breadth - 1], leb_versions, breadth);
y2 = norm_index(data_sizes[breadth - 1], data_sizes, breadth);
- fprintf(fpplot, "set xrange [-1:%u]\n", count + 1);
+ fprintf(fpplot, "set xrange [-1:%zu]\n", count + 1);
fprintf(fpplot, "set yrange [-1:%u]\n", y1 + 1);
fprintf(fpplot, "set y2range [-1:%u]\n", y2 + 1);
fprintf(fpplot, "plot \"%s\" u 1:4 t \"leb version: %s\" "