Some libc's don't support it.
Signed-off-by: Ran Benita <ran234@gmail.com>
if (ndx < 0 || ndx >= sizeof(act->data)) {
log_err(keymap->ctx,
if (ndx < 0 || ndx >= sizeof(act->data)) {
log_err(keymap->ctx,
- "The data for a private action is %zu bytes long; "
+ "The data for a private action is %lu bytes long; "
"Attempt to use data[%d] ignored\n",
"Attempt to use data[%d] ignored\n",
- sizeof(act->data), ndx);
+ (unsigned long) sizeof(act->data), ndx);
"round-trip test failed: dumped map differs from original\n");
fprintf(stderr, "path to original file: %s\n",
test_get_path(DATA_PATH));
"round-trip test failed: dumped map differs from original\n");
fprintf(stderr, "path to original file: %s\n",
test_get_path(DATA_PATH));
- fprintf(stderr, "length: dumped %zu, original %zu\n",
- strlen(dump), strlen(original));
+ fprintf(stderr, "length: dumped %lu, original %lu\n",
+ (unsigned long) strlen(dump),
+ (unsigned long) strlen(original));
fprintf(stderr, "dumped map:\n");
fprintf(stderr, "%s\n", dump);
fflush(stderr);
fprintf(stderr, "dumped map:\n");
fprintf(stderr, "%s\n", dump);
fflush(stderr);