mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-27 04:42:56 +03:00
fs_backing_store: Do not use %jx because amigaos3 can't render it properly
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
This commit is contained in:
parent
af158650d8
commit
6d8b9a9bb4
@ -1609,24 +1609,24 @@ static nserror store_write_block(struct store_state *state,
|
|||||||
offst = (unsigned int)bi << log2_block_size[elem_idx];
|
offst = (unsigned int)bi << log2_block_size[elem_idx];
|
||||||
|
|
||||||
wr = nsu_pwrite(state->blocks[elem_idx][bf].fd,
|
wr = nsu_pwrite(state->blocks[elem_idx][bf].fd,
|
||||||
bse->elem[elem_idx].data,
|
bse->elem[elem_idx].data,
|
||||||
bse->elem[elem_idx].size,
|
bse->elem[elem_idx].size,
|
||||||
offst);
|
offst);
|
||||||
if (wr != (ssize_t)bse->elem[elem_idx].size) {
|
if (wr != (ssize_t)bse->elem[elem_idx].size) {
|
||||||
NSLOG(netsurf, ERROR,
|
NSLOG(netsurf, ERROR,
|
||||||
"Write failed %"PRIssizet" of %d bytes from %p at 0x%jx block %d errno %d",
|
"Write failed %"PRIssizet" of %d bytes from %p at 0x%"PRIsizet"x block %d errno %d",
|
||||||
wr,
|
wr,
|
||||||
bse->elem[elem_idx].size,
|
bse->elem[elem_idx].size,
|
||||||
bse->elem[elem_idx].data,
|
bse->elem[elem_idx].data,
|
||||||
(uintmax_t)offst,
|
(size_t)offst,
|
||||||
bse->elem[elem_idx].block,
|
bse->elem[elem_idx].block,
|
||||||
errno);
|
errno);
|
||||||
return NSERROR_SAVE_FAILED;
|
return NSERROR_SAVE_FAILED;
|
||||||
}
|
}
|
||||||
|
|
||||||
NSLOG(netsurf, INFO,
|
NSLOG(netsurf, INFO,
|
||||||
"Wrote %"PRIssizet" bytes from %p at 0x%jx block %d", wr,
|
"Wrote %"PRIssizet" bytes from %p at 0x%"PRIsizet"x block %d", wr,
|
||||||
bse->elem[elem_idx].data, (uintmax_t)offst,
|
bse->elem[elem_idx].data, (size_t)offst,
|
||||||
bse->elem[elem_idx].block);
|
bse->elem[elem_idx].block);
|
||||||
|
|
||||||
return NSERROR_OK;
|
return NSERROR_OK;
|
||||||
@ -1779,24 +1779,24 @@ static nserror store_read_block(struct store_state *state,
|
|||||||
offst = (unsigned int)bi << log2_block_size[elem_idx];
|
offst = (unsigned int)bi << log2_block_size[elem_idx];
|
||||||
|
|
||||||
rd = nsu_pread(state->blocks[elem_idx][bf].fd,
|
rd = nsu_pread(state->blocks[elem_idx][bf].fd,
|
||||||
bse->elem[elem_idx].data,
|
bse->elem[elem_idx].data,
|
||||||
bse->elem[elem_idx].size,
|
bse->elem[elem_idx].size,
|
||||||
offst);
|
offst);
|
||||||
if (rd != (ssize_t)bse->elem[elem_idx].size) {
|
if (rd != (ssize_t)bse->elem[elem_idx].size) {
|
||||||
NSLOG(netsurf, ERROR,
|
NSLOG(netsurf, ERROR,
|
||||||
"Failed reading %"PRIssizet" of %d bytes into %p from 0x%jx block %d errno %d",
|
"Failed reading %"PRIssizet" of %d bytes into %p from 0x%"PRIsizet"x block %d errno %d",
|
||||||
rd,
|
rd,
|
||||||
bse->elem[elem_idx].size,
|
bse->elem[elem_idx].size,
|
||||||
bse->elem[elem_idx].data,
|
bse->elem[elem_idx].data,
|
||||||
(uintmax_t)offst,
|
(size_t)offst,
|
||||||
bse->elem[elem_idx].block,
|
bse->elem[elem_idx].block,
|
||||||
errno);
|
errno);
|
||||||
return NSERROR_SAVE_FAILED;
|
return NSERROR_SAVE_FAILED;
|
||||||
}
|
}
|
||||||
|
|
||||||
NSLOG(netsurf, DEEPDEBUG,
|
NSLOG(netsurf, DEEPDEBUG,
|
||||||
"Read %"PRIssizet" bytes into %p from 0x%jx block %d", rd,
|
"Read %"PRIssizet" bytes into %p from 0x%"PRIsizet"x block %d", rd,
|
||||||
bse->elem[elem_idx].data, (uintmax_t)offst,
|
bse->elem[elem_idx].data, (size_t)offst,
|
||||||
bse->elem[elem_idx].block);
|
bse->elem[elem_idx].block);
|
||||||
|
|
||||||
return NSERROR_OK;
|
return NSERROR_OK;
|
||||||
|
Loading…
Reference in New Issue
Block a user