Skip to content

Commit 80d115e

Browse files
committed
src/metadata.c: fix format for __u64 in metadata.c
On ppc64le, __u64 is typedef'd as 'unsigned long' rather than 'unsigned long long', so cast to unsigned long long fix the warning. Fixes: #233 Assisted-by: Gemini Signed-off-by: Yi Zhang <[email protected]>
1 parent af0b85f commit 80d115e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/metadata.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ static int check_metadata(void *p, int intervals, int ref)
246246

247247
if (v != ref) {
248248
fprintf(stderr, "reftag interval:%d expected:%x got:%llx\n",
249-
i, ref, v);
249+
i, ref, (unsigned long long)v);
250250
return -1;
251251
}
252252
remaining -= sizeof(*tuple);

0 commit comments

Comments
 (0)