util-linux/disk-utils
Ruediger Meier 7231fb2a5b misc: fix some printf format strings
Fix the warnings below for OSX clang and add a few more
casts for timeval:

lib/at.c:131:27: warning: format specifies type 'intmax_t' (aka 'long') but the argument has type 'off_t' (aka 'long long') [-Wformat]

                        printf("%16jd bytes ", st.st_size);

                                ~~~~~          ^~~~~~~~~~

lib/strutils.c:522:52: warning: format specifies type 'intmax_t' (aka 'long') but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat]

                snprintf(buf, sizeof(buf), "%d%s%jd%s", dec, dp, frac, suffix);

                                                ~~~              ^~~~

lib/sysfs.c:468:42: warning: format specifies type 'uintmax_t' (aka 'unsigned long') but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat]

        len = snprintf(buf, sizeof(buf), "%ju", num);

                                          ~~~   ^~~

libuuid/src/gen_uuid.c:316:34: warning: format specifies type 'unsigned long' but the argument has type '__darwin_suseconds_t' (aka 'int') [-Wformat]

                              clock_seq, last.tv_sec, last.tv_usec, adjustment);

                                                      ^~~~~~~~~~~~

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2016-02-11 13:39:56 +01:00
..
Makemodule.am tests: add way to control mkfs.minix time stamps 2015-08-03 11:27:37 +02:00
addpart.8 partx: don't use "hard drive" in man pages 2015-01-12 11:15:55 +01:00
addpart.c textual: add a docstring to most of the utilities 2015-01-06 11:27:38 +01:00
blockdev.8 docs: remove obsolete and unneeded comments from man-page files 2015-01-12 11:03:26 +01:00
blockdev.c Since 569d1dac7b we read device start 2015-03-17 11:10:20 +01:00
cfdisk.8 cfdisk: provide extra partinfo with "x" 2015-03-27 14:04:44 +01:00
cfdisk.c cfdisk: use new libsmartcols functionality to fix output 2015-12-07 12:23:26 +01:00
cramfs.h cramfs.h: coding style 2011-07-21 23:50:04 +02:00
cramfs_common.c mkfs.cramfs: fix compiler warning [-Wmissing-prototypes] 2012-07-16 18:57:30 +02:00
delpart.8 partx: don't use "hard drive" in man pages 2015-01-12 11:15:55 +01:00
delpart.c textual: add a docstring to most of the utilities 2015-01-06 11:27:38 +01:00
fdformat.8 docs: restore minus symbols in long opts 2015-01-20 18:15:30 -05:00
fdformat.c fdformat: fix block device open race 2015-11-22 20:56:38 +00:00
fdisk-list.c docs: fix typos found by codespell 2016-02-03 15:10:08 +01:00
fdisk-list.h fdisk: add 'F' command to list free unpartitioned space 2015-07-28 15:53:42 +02:00
fdisk-menu.c fdisk: make 'f' command more verbose 2016-02-03 13:40:25 +01:00
fdisk.8 fdisk: add --protect-boot 2015-04-13 17:24:45 +02:00
fdisk.c Fix trivial typos 2015-08-25 20:02:53 +03:00
fdisk.h libfdisk: fix fdisk_label_parse_parttype() for unknown types 2015-07-15 15:42:22 +02:00
fsck.8 fsck: implement fsck -r {fd} 2015-04-28 13:16:41 +02:00
fsck.c misc: fix some printf format strings 2016-02-11 13:39:56 +01:00
fsck.cramfs.8 docs: remove obsolete and unneeded comments from man-page files 2015-01-12 11:03:26 +01:00
fsck.cramfs.c sys-utils/disk-utils/lib: fix printf format types [cppcheck] 2015-06-25 12:08:45 +02:00
fsck.minix.8 docs: make fsck.minix(8) more pretty 2015-07-30 11:39:18 +02:00
fsck.minix.c misc: fix shadow declarations 2015-08-24 10:55:37 +02:00
isosize.8 docs: don't use bold or italics for "[option]" in synopsis of man pages 2014-12-19 09:57:23 +01:00
isosize.c textual: add a docstring to most of the utilities 2015-01-06 11:27:38 +01:00
minix_programs.h minix: change types in header file 2012-12-19 11:38:51 +01:00
mkfs.8 mkfs: drop hardcoded search path 2015-04-27 10:28:44 +02:00
mkfs.bfs.8 docs: don't use bold or italics for "[option]" in synopsis of man pages 2014-12-19 09:57:23 +01:00
mkfs.bfs.c mkfs.bfs: allow creating file system to a file 2015-11-22 20:56:37 +00:00
mkfs.c mkfs: drop hardcoded search path 2015-04-27 10:28:44 +02:00
mkfs.cramfs.8 docs: remove obsolete and unneeded comments from man-page files 2015-01-12 11:03:26 +01:00
mkfs.cramfs.c mkfs.cramfs: remove dead code [coverity scan] 2015-08-04 11:33:57 +02:00
mkfs.minix.8 mkfs.minix: check user input carefully 2015-07-30 11:39:14 +02:00
mkfs.minix.c mkfs.minix: fix block device open race 2015-11-22 20:56:38 +00:00
mkswap.8 docs: unify mkswap(8) with swapon(8) about holes warning 2015-06-29 12:06:00 +02:00
mkswap.c mkswap: add warnings for insecure device permissions/owners 2016-01-26 11:26:00 +01:00
partx.8 docs: make the wording of the partx man page a bit more precise 2015-01-12 11:04:35 +01:00
partx.c lib/strutils: fix string_add_to_idarray() int vs. size_t 2015-04-22 11:08:05 +02:00
partx.h partx: prevent code duplication 2015-10-09 12:18:28 +02:00
raw.8 docs: remove obsolete and unneeded comments from man-page files 2015-01-12 11:03:26 +01:00
raw.c raw: fix raw query 2015-01-13 09:53:46 +01:00
resizepart.8 partx: don't use "hard drive" in man pages 2015-01-12 11:15:55 +01:00
resizepart.c textual: add a docstring to most of the utilities 2015-01-06 11:27:38 +01:00
sfdisk.8 sfdisk: add ESP shortcut also for Legacy MBR 2016-02-08 16:37:03 +01:00
sfdisk.c sfdisk: make --quiet really quiet 2016-02-01 14:30:31 +01:00
swaplabel.8 docs: update info about env debug variables 2014-11-03 13:13:54 +01:00
swaplabel.c textual: add a docstring to most of the utilities 2015-01-06 11:27:38 +01:00