mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
zfs: Use grub_uint64_t instead of 1ULL in BF64_*CODE() macros
The underlying type of 1ULL does not change across architectures but grub_uint64_t does. This allows using the BF64_*CODE() macros as arguments to format string functions that use the PRI* format string macros that also vary with architecture. Change the grub_error() call, where this was previously an issue and temporarily fixed by casting and using a format string literal code, to now use PRI* macros and remove casting. Signed-off-by: Glenn Washburn <development@efficientek.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
1 parent
69665e07cb
commit
3ffd708dd5
2 files changed
+5
-4
No files matched your search
@@ -1869,8 +1869,9 @@ zio_read (blkptr_t *bp, grub_zfs_endian_t endian, void **buf,
|
||||
{
|
||||
if (BPE_GET_ETYPE(bp) != BP_EMBEDDED_TYPE_DATA)
|
||||
return grub_error (GRUB_ERR_NOT_IMPLEMENTED_YET,
|
||||
"unsupported embedded BP (type=%llu)\n",
|
||||
(long long unsigned int) BPE_GET_ETYPE(bp));
|
||||
"unsupported embedded BP (type=%"
|
||||
PRIuGRUB_UINT64_T ")\n",
|
||||
BPE_GET_ETYPE (bp));
|
||||
lsize = BPE_GET_LSIZE(bp);
|
||||
psize = BF64_GET_SB(grub_zfs_to_cpu64 ((bp)->blk_prop, endian), 25, 7, 0, 1);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user