svn commit: r350442 - stable/11/usr.sbin/mptutil
Ed Maste
emaste at FreeBSD.org
Tue Jul 30 14:19:19 UTC 2019
Author: emaste
Date: Tue Jul 30 14:19:18 2019
New Revision: 350442
URL: https://svnweb.freebsd.org/changeset/base/350442
Log:
MFC r350215: mptutil: emit a warning on big-endian architectures
It is known to be broken.
PR: 162513
Sponsored by: The FreeBSD Foundation
Modified:
stable/11/usr.sbin/mptutil/mptutil.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/usr.sbin/mptutil/mptutil.c
==============================================================================
--- stable/11/usr.sbin/mptutil/mptutil.c Tue Jul 30 14:18:05 2019 (r350441)
+++ stable/11/usr.sbin/mptutil/mptutil.c Tue Jul 30 14:19:18 2019 (r350442)
@@ -112,6 +112,10 @@ main(int ac, char **av)
if (ac == 0)
usage();
+#if BYTE_ORDER == BIG_ENDIAN
+ warnx("mptutil is known to be broken on big-endian architectures");
+#endif
+
SET_FOREACH(cmd, MPT_DATASET(top)) {
if (strcmp((*cmd)->name, av[0]) == 0) {
if ((*cmd)->handler(ac, av))
More information about the svn-src-all
mailing list