From 1218acb302eabe62732caff18eabb18eba54eff0 Mon Sep 17 00:00:00 2001 From: avg Date: Sat, 12 May 2012 20:23:30 +0000 Subject: zfs boot code: use %j and uintmax_t instead %ll and uint64_t in printfs This is to silence warnings that result from different definitions of uint64_t on different architectures, specifically i386 and sparc64. MFC after: 1 month --- sys/boot/zfs/zfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/boot/zfs/zfs.c') diff --git a/sys/boot/zfs/zfs.c b/sys/boot/zfs/zfs.c index c90e1c7..d474181 100644 --- a/sys/boot/zfs/zfs.c +++ b/sys/boot/zfs/zfs.c @@ -433,8 +433,8 @@ zfs_dev_open_spa(struct open_file *f, spa_t *spa, uint64_t root_guid) return (rv); } if (mount->objset.os_type != DMU_OST_ZFS) { - printf("Unexpected object set type %llu\n", - mount->objset.os_type); + printf("Unexpected object set type %ju\n", + (uintmax_t)mount->objset.os_type); free(mount); return (EIO); } -- cgit v1.1