svn commit: r350215 - head/usr.sbin/mptutil
Ed Maste
emaste at FreeBSD.org
Mon Jul 22 17:25:36 UTC 2019
Author: emaste
Date: Mon Jul 22 17:25:35 2019
New Revision: 350215
URL: https://svnweb.freebsd.org/changeset/base/350215
Log:
mptutil: emit a warning on big-endian architectures
It is known to be broken.
PR: 162513
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Modified:
head/usr.sbin/mptutil/mptutil.c
Modified: head/usr.sbin/mptutil/mptutil.c
==============================================================================
--- head/usr.sbin/mptutil/mptutil.c Mon Jul 22 17:08:18 2019 (r350214)
+++ head/usr.sbin/mptutil/mptutil.c Mon Jul 22 17:25:35 2019 (r350215)
@@ -114,6 +114,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-head
mailing list