diff options
author | Glenn Washburn <development@efficientek.com> | 2021-03-04 18:22:43 -0600 |
---|---|---|
committer | Daniel Kiper <daniel.kiper@oracle.com> | 2021-03-10 15:23:33 +0100 |
commit | e458caffb82a4cf84908be760d3959fcf5ca634a (patch) | |
tree | 3e8a22acbc82acf8a99a06a9f764c2829569a48a | |
parent | e72139a76ed43b96a260eb7f7d149912788aa7db (diff) | |
download | grub-e458caffb82a4cf84908be760d3959fcf5ca634a.tar.gz |
fs/zfs/zfs: Use format code "%llu" for 64-bit uint bp->blk_prop in grub_error()
This is a temporary, less-intrusive change to get the build to success with
compiler format string checking turned on. There is a better fix which
addresses this issue, but it needs more testing. Use this change so that
format string checking on grub_error() can be turned on until the better
change is fully tested.
Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
-rw-r--r-- | grub-core/fs/zfs/zfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/grub-core/fs/zfs/zfs.c b/grub-core/fs/zfs/zfs.c index 9ef2fd61a..f9e755197 100644 --- a/grub-core/fs/zfs/zfs.c +++ b/grub-core/fs/zfs/zfs.c @@ -1869,8 +1869,8 @@ 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=%u)\n", - BPE_GET_ETYPE(bp)); + "unsupported embedded BP (type=%llu)\n", + (long long unsigned int) 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); } |