Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Jul 2019 14:18:05 +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-12@freebsd.org
Subject:   svn commit: r350441 - stable/12/usr.sbin/mptutil
Message-ID:  <201907301418.x6UEI5W0022035@repo.freebsd.org>

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



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