]> git.ipfire.org Git - thirdparty/grub.git/commit
zfs: Use grub_uint64_t instead of 1ULL in BF64_*CODE() macros
authorGlenn Washburn <development@efficientek.com>
Fri, 5 Mar 2021 00:22:45 +0000 (18:22 -0600)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 8 Jun 2021 15:47:43 +0000 (17:47 +0200)
commit3ffd708dd56aebb937b8f09203f9fde8b6fc30c3
tree20cfa4c4ea4d923debb0db0e606851eb91a48de0
parent69665e07cbe1a2133901367990ce8d101b6331ab
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>
grub-core/fs/zfs/zfs.c
include/grub/zfs/spa.h