diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2022-03-10 23:17:20 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2022-03-10 23:17:20 +0100 |
commit | f20ed9eef65cb9ce56f4a7abd07ad80979b888ad (patch) | |
tree | 58a755c2438afb96fe2a9bc4d52d1643004ac591 /bin/rdsquashfs/stat.c | |
parent | fbccd0d022b1ffc3f648761406cb53a32e63deae (diff) |
Fix: use correct printf specifier for 64bit types
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'bin/rdsquashfs/stat.c')
-rw-r--r-- | bin/rdsquashfs/stat.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/rdsquashfs/stat.c b/bin/rdsquashfs/stat.c index ae6e10b..8b4581f 100644 --- a/bin/rdsquashfs/stat.c +++ b/bin/rdsquashfs/stat.c @@ -130,8 +130,10 @@ int stat_file(const sqfs_tree_node_t *node) printf("Fragment offset: %u\n", frag_offset); printf("File size: %lu\n", (unsigned long)size); - if (inode->base.type == SQFS_INODE_EXT_FILE) - printf("Sparse: %lu\n", inode->data.file_ext.sparse); + if (inode->base.type == SQFS_INODE_EXT_FILE) { + printf("Sparse: " PRI_U64 "\n", + inode->data.file_ext.sparse); + } printf("Blocks start: %lu\n", (unsigned long)location); printf("Block count: %lu\n", |