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)) _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"