]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Print Maximum Data Transfer Size as a long rather than int
authorjhibbits <jhibbits@FreeBSD.org>
Thu, 7 Jun 2018 04:02:09 +0000 (04:02 +0000)
committerjhibbits <jhibbits@FreeBSD.org>
Thu, 7 Jun 2018 04:02:09 +0000 (04:02 +0000)
commita4c62ab605d2d8b83b62bd50a9ad3cfabff081cf
tree92dc063917ca886aa2b520e43b074c7049696c29
parent9d6eb325256efbfd0555668f14f33d7ad0f82590
Print Maximum Data Transfer Size as a long rather than int

PowerPC has PAGE_SIZE as a long, not an int.  This causes the compiler to throw
a format mismatch warning on this print.  To work around the difference, print
it as a long instead of an int, and force the argument to a long.

Reviewed By: imp
Differential Revision: https://reviews.freebsd.org/D15653
sbin/nvmecontrol/identify.c