svn commit: r350441 - stable/12/usr.sbin/mptutil

Ed Maste emaste at FreeBSD.org
Tue Jul 30 14:18:06 UTC 2019


Author: emaste
Date: Tue Jul 30 14:18:05 2019
New Revision: 350441
URL: https://svnweb.freebsd.org/changeset/base/350441

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/12/usr.sbin/mptutil/mptutil.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/usr.sbin/mptutil/mptutil.c
==============================================================================
--- stable/12/usr.sbin/mptutil/mptutil.c	Tue Jul 30 12:51:14 2019	(r350440)
+++ stable/12/usr.sbin/mptutil/mptutil.c	Tue Jul 30 14:18:05 2019	(r350441)
@@ -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-all mailing list