libopkg/pkg.c: In function 'pkg_set_raw':
libopkg/pkg.c:109:58: warning: format '%d' expects argument of type
'int', but argument 5 has type 'size_t' {aka 'long unsigned int'}
[-Wformat=]
Use '%zu' instead.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
blob_for_each_attr(cur, pkg->blob.head, rem) {
if (blob_id(cur) == id) {
if (blob_len(cur) < len) {
- fprintf(stderr, "ERROR: truncating field %d <%p> to %d byte",
+ fprintf(stderr, "ERROR: truncating field %d <%p> to %zu byte",
id, val, blob_len(cur));
}
memcpy(blob_data(cur), val, blob_len(cur));