dim
3c2763f846
Fix printf format warning in iflib.c
...
Clang 5.0.0 got better warnings about printf format strings using %zd,
and this leads to the following -Werror warning on e.g. arm:
sys/net/iflib.c:1517:8: error: format specifies type 'ssize_t' (aka 'int') but the argument has type 'bus_size_t' (aka 'unsigned long') [-Werror,-Wformat]
sctx->isc_tx_maxsize, nsegments, sctx->isc_tx_maxsegsize);
^~~~~~~~~~~~~~~~~~~~
sys/net/iflib.c:1517:41: error: format specifies type 'ssize_t' (aka 'int') but the argument has type 'bus_size_t' (aka 'unsigned long') [-Werror,-Wformat]
sctx->isc_tx_maxsize, nsegments, sctx->isc_tx_maxsegsize);
^~~~~~~~~~~~~~~~~~~~~~~
Fix this by casting bus_size_t arguments to uintmax_t, and using %ju
instead.
Reviewed by: emaste
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D11679
2017-07-20 20:28:31 +00:00
..
2017-05-17 00:34:34 +00:00
2017-02-28 23:42:47 +00:00
2017-05-17 00:34:34 +00:00
2017-04-17 22:02:09 +00:00
2017-04-17 22:02:09 +00:00
2017-06-27 01:29:10 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2016-05-03 18:05:43 +00:00
2017-02-15 07:22:47 +00:00
2017-05-19 01:42:31 +00:00
2016-07-06 17:46:49 +00:00
2017-05-10 18:33:40 +00:00
2017-01-18 13:31:17 +00:00
2017-02-28 23:42:47 +00:00
2016-09-15 07:41:48 +00:00
2017-02-28 23:42:47 +00:00
2017-04-29 08:52:07 +00:00
2017-01-25 21:25:26 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-01-18 13:31:17 +00:00
2016-06-22 12:53:10 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-03-27 07:56:41 +00:00
2017-04-08 04:50:50 +00:00
2017-05-11 06:46:39 +00:00
2017-02-22 02:35:59 +00:00
2017-02-28 23:42:47 +00:00
2016-08-07 03:48:33 +00:00
2017-04-11 08:56:18 +00:00
2017-04-11 08:56:18 +00:00
2017-03-07 00:13:53 +00:00
2017-02-06 08:49:57 +00:00
2017-02-22 02:35:59 +00:00
2017-05-26 22:22:48 +00:00
2017-05-25 23:19:09 +00:00
2017-05-17 00:34:34 +00:00
2016-10-11 17:41:13 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-04-11 08:56:18 +00:00
2017-05-17 00:34:34 +00:00
2017-05-10 18:33:40 +00:00
2016-05-03 18:05:43 +00:00
2016-05-03 18:05:43 +00:00
2017-03-08 08:09:41 +00:00
2016-05-19 13:52:12 +00:00
2016-05-24 11:47:14 +00:00
2017-02-28 23:42:47 +00:00
2017-05-10 22:13:47 +00:00
2016-06-06 09:51:58 +00:00
2017-05-23 00:13:27 +00:00
2016-06-07 04:51:50 +00:00
2017-05-10 22:13:47 +00:00
2017-02-28 23:42:47 +00:00
2017-03-13 22:53:06 +00:00
2017-07-20 20:28:31 +00:00
2017-07-01 05:35:29 +00:00
2017-02-28 23:42:47 +00:00
2016-05-19 16:28:05 +00:00
2016-05-18 04:35:58 +00:00
2016-06-07 15:07:00 +00:00
2016-07-09 02:33:45 +00:00
2016-07-09 02:33:45 +00:00
2017-02-19 02:03:09 +00:00
2017-04-24 21:21:49 +00:00
2016-10-18 15:41:57 +00:00
2016-10-27 09:46:22 +00:00
2016-10-27 09:46:22 +00:00
2017-04-03 13:35:04 +00:00
2017-04-03 13:35:04 +00:00
2017-03-07 00:13:53 +00:00
2017-03-22 21:18:18 +00:00
2016-04-26 20:27:17 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2016-10-27 04:55:19 +00:00
2017-02-28 23:42:47 +00:00
2017-06-13 10:52:31 +00:00
2017-06-13 10:52:31 +00:00
2016-05-03 18:05:43 +00:00
2017-04-08 04:37:01 +00:00
2016-05-03 18:05:43 +00:00
2017-05-17 00:34:34 +00:00
2017-02-28 23:42:47 +00:00
2016-06-21 13:48:49 +00:00
2016-06-21 13:48:49 +00:00