Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Jul 2019 14:19:19 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r350442 - stable/11/usr.sbin/mptutil
Message-ID:  <201907301419.x6UEJJt8022152@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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))



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201907301419.x6UEJJt8022152>