svn commit: r266798 - head/usr.sbin/usbdump

Hans Petter Selasky hselasky at FreeBSD.org
Wed May 28 12:27:42 UTC 2014


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);


More information about the svn-src-all mailing list