Skip to content

Instantly share code, notes, and snippets.

@aprieger-llnw
Created June 16, 2017 17:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aprieger-llnw/d14e571d85c30c11f80c4a6cb4bb5071 to your computer and use it in GitHub Desktop.
Save aprieger-llnw/d14e571d85c30c11f80c4a6cb4bb5071 to your computer and use it in GitHub Desktop.
/usr/home/aprieger/repos/freebsd_master/freebsd/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c:1333:9: warning: format specifies type 'unsigned long long' but the argument has type 'int64_t' (aka 'long') [-Wformat]
cb.cb_snapused);
^~~~~~~~~~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c:2075:15: warning: format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat]
"%llu", cb->cb_version);
~~~~ ^~~~~~~~~~~~~~
%lu
/usr/home/aprieger/repos/freebsd_master/freebsd/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c:2184:7: warning: format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat]
cb.cb_numupgraded);
^~~~~~~~~~~~~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c:2188:8: warning: format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat]
cb.cb_numsamegraded);
^~~~~~~~~~~~~~~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c:2551:54: warning: format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat]
(void) snprintf(sizebuf, sizeof (sizebuf), "%llu", space);
~~~~ ^~~~~
%lu
/usr/home/aprieger/repos/freebsd_master/freebsd/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c:2622:36: warning: format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat]
(void) sprintf(valstr, "%llu", val64);
~~~~ ^~~~~
%lu
/usr/home/aprieger/repos/freebsd_master/freebsd/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c:2630:37: warning: format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat]
(void) sprintf(valstr, "%llu", val64);
~~~~ ^~~~~
%lu
/usr/home/aprieger/repos/freebsd_master/freebsd/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c:2653:22: warning: field width should have type 'int', but argument has type 'size_t' (aka 'unsigned long') [-Wformat]
(void) printf("%-*s", width[field], strval);
~~~^ ~~~~~~~~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c:2655:21: warning: field width should have type 'int', but argument has type 'size_t' (aka 'unsigned long') [-Wformat]
(void) printf("%*s", width[field], strval);
~~^ ~~~~~~~~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c:2679:31: warning: field width should have type 'int', but argument has type 'size_t' (aka 'unsigned long') [-Wformat]
(void) printf(first ? "%-*s" : " %-*s",
~~~^
/usr/home/aprieger/repos/freebsd_master/freebsd/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c:2679:42: warning: field width should have type 'int', but argument has type 'size_t' (aka 'unsigned long') [-Wformat]
(void) printf(first ? "%-*s" : " %-*s",
~~~^
/usr/home/aprieger/repos/freebsd_master/freebsd/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c:2682:30: warning: field width should have type 'int', but argument has type 'size_t' (aka 'unsigned long') [-Wformat]
(void) printf(first ? "%*s" : " %*s",
~~^
/usr/home/aprieger/repos/freebsd_master/freebsd/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c:2682:40: warning: field width should have type 'int', but argument has type 'size_t' (aka 'unsigned long') [-Wformat]
(void) printf(first ? "%*s" : " %*s",
~~^
/usr/home/aprieger/repos/freebsd_master/freebsd/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c:2977:21: warning: field width should have type 'int', but argument has type 'size_t' (aka 'unsigned long') [-Wformat]
(void) printf("%*s", pl->pl_width, header);
~~^ ~~~~~~~~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c:2979:22: warning: field width should have type 'int', but argument has type 'size_t' (aka 'unsigned long') [-Wformat]
(void) printf("%-*s", pl->pl_width, header);
~~~^ ~~~~~~~~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c:3055:21: warning: field width should have type 'int', but argument has type 'size_t' (aka 'unsigned long') [-Wformat]
(void) printf("%*s", pl->pl_width, propstr);
~~^ ~~~~~~~~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c:3057:22: warning: field width should have type 'int', but argument has type 'size_t' (aka 'unsigned long') [-Wformat]
(void) printf("%-*s", pl->pl_width, propstr);
~~~^ ~~~~~~~~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c:3619:30: warning: data argument not used by format string [-Wformat-extra-args]
"argument order\n"), i);
~~~~~~~~~~~~~~~~~~ ^
/usr/home/aprieger/repos/freebsd_master/freebsd/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c:5206:18: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
(void) printf(*title_ptr++);
^~~~~~~~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c:5206:18: note: treat the string as an argument to avoid this
(void) printf(*title_ptr++);
^
"%s",
/usr/home/aprieger/repos/freebsd_master/freebsd/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c:5261:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
(void) printf(title);
^~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c:5261:20: note: treat the string as an argument to avoid this
(void) printf(title);
^
"%s",
/usr/home/aprieger/repos/freebsd_master/freebsd/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c:5322:17: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
(void) printf(dsname);
^~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c:5322:17: note: treat the string as an argument to avoid this
(void) printf(dsname);
^
"%s",
/usr/home/aprieger/repos/freebsd_master/freebsd/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c:5601:23: warning: field width should have type 'int', but argument has type 'unsigned long' [-Wformat]
(void) printf("%-*s ", i ? tagwidth : nwidth,
~~~^ ~~~~~~~~~~~~~~~~~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c:5624:47: warning: format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat]
snprintf(tsbuf, DATETIME_BUF_LEN, "%llu", val);
~~~~ ^~~
%lu
/usr/home/aprieger/repos/freebsd_master/freebsd/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c:5632:22: warning: field width should have type 'int', but argument has type 'size_t' (aka 'unsigned long') [-Wformat]
(void) printf("%-*s%*c%-*s%*c%s\n", nwidth, zname,
~~~^ ~~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c:6103:7: warning: format specifies type 'int' but the argument has type 'char *' [-Wformat]
"-o", MNT_LINE_MAX);
^~~~
25 warnings generated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment