Date: Wed, 28 May 2014 12:27:42 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r266798 - head/usr.sbin/usbdump Message-ID: <201405281227.s4SCRgKs038491@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: hselasky Date: Wed May 28 12:27:41 2014 New Revision: 266798 URL: http://svnweb.freebsd.org/changeset/base/266798 Log: Fix for big endian architectures. The "up_address" field is 8-bit and does not need byte swapping. MFC after: 1 week Modified: head/usr.sbin/usbdump/usbdump.c Modified: head/usr.sbin/usbdump/usbdump.c ============================================================================== --- head/usr.sbin/usbdump/usbdump.c Wed May 28 11:30:37 2014 (r266797) +++ head/usr.sbin/usbdump/usbdump.c Wed May 28 12:27:41 2014 (r266798) @@ -473,7 +473,7 @@ print_apacket(const struct header_32 *hd */ up->up_totlen = le32toh(up->up_totlen); up->up_busunit = le32toh(up->up_busunit); - up->up_address = le32toh(up->up_address); + up->up_address = up->up_address; up->up_flags = le32toh(up->up_flags); up->up_status = le32toh(up->up_status); up->up_error = le32toh(up->up_error);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405281227.s4SCRgKs038491>