Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Jul 2019 17:25:36 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r350215 - head/usr.sbin/mptutil
Message-ID:  <201907221725.x6MHPapH019621@repo.freebsd.org>

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



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