Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aed6bec4 authored by Ashok Bhat's avatar Ashok Bhat Committed by David Butcher
Browse files

libion: Use %zu for size_t



Change-Id: If92fc31ab676a569530c21e655a1b5b451f5c5e5
Signed-off-by: default avatarAshok Bhat <ashok.bhat@arm.com>
parent 6fec3a23
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -73,7 +73,7 @@ void ion_map_test()
	}
	for (i = 0; i < len; i++)
		if (ptr[i] != (unsigned char)i)
			printf("%s failed wrote %d read %d from mapped "
			printf("%s failed wrote %zu read %d from mapped "
			       "memory\n", __func__, i, ptr[i]);
	/* clean up properly */
	ret = ion_free(fd, handle);
@@ -257,7 +257,7 @@ int main(int argc, char* argv[]) {
			break;
		}
	}
	printf("test %d, len %u, align %u, map_flags %d, prot %d, heap_mask %d,"
	printf("test %d, len %zu, align %zu, map_flags %d, prot %d, heap_mask %d,"
	       " alloc_flags %d\n", test, len, align, map_flags, prot,
	       heap_mask, alloc_flags);
	switch (test) {