ret = fwrite(buf, chunksize, 1, blobfile);
if (ret == 1) {
padding = erofs_blkoff(sbi, chunksize);
diff --git a/lib/compress.c b/lib/compress.c
index 8655e78..17e7112 100644
--- a/lib/compress.c
+++ b/lib/compress.c
@@ -497,8 +497,8 @@ static bool z_erofs_fixup_deduped_fragment(struct
z_erofs_compress_sctx *ctx,
inode->fragmentoff += inode->fragment_size - newsize;
inode->fragment_size = newsize;
- erofs_dbg("Reducing fragment size to %u at %llu",
- inode->fragment_size, inode->fragmentoff | 0ULL);
+ erofs_dbg("Reducing fragment size to %llu at %llu",
+ inode->fragment_size | 0ULL, inode->fragmentoff | 0ULL);
/* it's the end */
DBG_BUGON(ctx->tail - ctx->head + ctx->remaining != newsize);
diff --git a/lib/fragments.c b/lib/fragments.c
index 7591718..e2d3343 100644
--- a/lib/fragments.c
+++ b/lib/fragments.c
@@ -138,7 +138,7 @@ static int z_erofs_fragments_dedupe_find(struct
erofs_inode *inode, int fd,
inode->fragment_size = deduped;
inode->fragmentoff = pos;
- erofs_dbg("Dedupe %u tail data at %llu", inode->fragment_size,
+ erofs_dbg("Dedupe %llu tail data at %llu", inode->fragment_size
| 0ULL,
inode->fragmentoff | 0ULL);
out:
free(data);
@@ -283,8 +283,8 @@ int z_erofs_pack_file_from_fd(struct erofs_inode
*inode, int fd,
goto out;
}
- erofs_dbg("Recording %u fragment data at %lu",
inode->fragment_size,
- inode->fragmentoff);
+ erofs_dbg("Recording %llu fragment data at %llu",
+ inode->fragment_size | 0ULL, inode->fragmentoff | 0ULL);
if (memblock)
rc = z_erofs_fragments_dedupe_insert(memblock,
@@ -316,8 +316,8 @@ int z_erofs_pack_fragments(struct erofs_inode
*inode, void *data,
if (fwrite(data, len, 1, packedfile) != 1)
return -EIO;
- erofs_dbg("Recording %u fragment data at %lu",
inode->fragment_size,
- inode->fragmentoff);
+ erofs_dbg("Recording %llu fragment data at %llu",
+ inode->fragment_size | 0ULL, inode->fragmentoff | 0ULL);
ret = z_erofs_fragments_dedupe_insert(data, len,
inode->fragmentoff,
tofcrc);
diff --git a/lib/super.c b/lib/super.c
index 32e10cd..7c4d7f2 100644
--- a/lib/super.c
+++ b/lib/super.c
@@ -213,7 +213,8 @@ struct erofs_buffer_head *erofs_reserve_sb(struct
erofs_bufmgr *bmgr)
bh = erofs_balloc(bmgr, META, 0, 0, 0);
if (IS_ERR(bh)) {
- erofs_err("failed to allocate super: %s", PTR_ERR(bh));
+ erofs_err("failed to allocate super: %s",
+ erofs_strerror(PTR_ERR(bh)));