curr_pos = prev_pos;
if (prev_pos + ctx->de_namelen >= PATH_MAX) {
- erofs_err("unable to fsck since the path is too long (%u)",
- curr_pos + ctx->de_namelen);
+ erofs_err("unable to fsck since the path is too long (%llu)",
+ (curr_pos + ctx->de_namelen) | 0ULL);
return -EOPNOTSUPP;
}
chunk->device_id = 0;
chunk->blkaddr = erofs_blknr(sbi, blkpos);
- erofs_dbg("Writing chunk (%u bytes) to %u", chunksize, chunk->blkaddr);
+ erofs_dbg("Writing chunk (%llu bytes) to %u", chunksize | 0ULL,
+ chunk->blkaddr);
ret = fwrite(buf, chunksize, 1, blobfile);
if (ret == 1) {
padding = erofs_blkoff(sbi, chunksize);
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);
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);
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,
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);
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)));
return bh;
}
bh->op = &erofs_skip_write_bhops;
u64 i = strtoull(val, &endptr, 0);
if (endptr - val != vallen) {
- erofs_err("invalid pcluster size %s for the packed file %s", val);
+ erofs_err("invalid pcluster size %s for the packed file", val);
return -EINVAL;
}
pclustersize_packed = i;