The printf format for uint64_t was "%ld", so it is fixed with "PRIu64",
which can be used for uint64_t portably.
Change-Id: I2f62f30b5b3ae44eb5feb38d07f37f2050814bb0
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include <inttypes.h>
#include <libtar.h>
#include <zlib.h>
ret = -1;
} else {
*block_count = (uint64_t) atoi(read_word);
- fprintf(stderr, "Block count for %s: %ld\n", archive_file, *block_count);
+ fprintf(stderr, "Block count for %s: %"PRIu64"\n", archive_file, *block_count);
ret = 0;
}