freebsd-nq/sys/boot/efi/boot1
Dimitry Andric 04a7769aa2 Fix printf format warning in zfs_module.c
Clang 5.0.0 got better warnings about print format strings using %zd,
and this leads to the following -Werror warning on e.g. arm:

    sys/boot/efi/boot1/zfs_module.c:186:18: error: format specifies type 'ssize_t' (aka 'int') but the argument has type 'off_t' (aka 'long long') [-Werror,-Wformat]
                        "(%lu)\n", st.st_size, spa->spa_name, filepath, EFI_ERROR_CODE(status));
                                   ^~~~~~~~~~

Fix this by casting off_t arguments to intmax_t, and using %jd instead.

Reviewed by:	tsoome
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D11678
2017-07-20 20:27:19 +00:00
..
boot1.c Silence GCC warning by initializing the local variable. 2017-04-07 22:58:34 +00:00
boot_module.h Remove redundant declarations 2017-03-28 20:26:04 +00:00
fat-amd64.tmpl.bz2.uu boot1: regenerate FAT templates after r297871 2016-04-12 20:59:25 +00:00
fat-arm64.tmpl.bz2.uu boot1: regenerate FAT templates after r297871 2016-04-12 20:59:25 +00:00
fat-arm.tmpl.bz2.uu boot1: regenerate FAT templates after r297871 2016-04-12 20:59:25 +00:00
fat-i386.tmpl.bz2.uu boot1: regenerate FAT templates after r297871 2016-04-12 20:59:25 +00:00
generate-fat.sh boot1.efifat: provide a fallback startup.nsh 2016-04-12 20:52:28 +00:00
Makefile Link EFI/uboot loaders with -znotext 2017-07-01 18:48:15 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2016-02-16 02:14:30 +00:00
Makefile.fat boot1: regenerate FAT templates after r297871 2016-04-12 20:59:25 +00:00
ufs_module.c Correctly print and cast u_int64_t and off_t. 2016-08-17 08:29:30 +00:00
zfs_module.c Fix printf format warning in zfs_module.c 2017-07-20 20:27:19 +00:00