svn commit: r218729 - in head: share/man/man4 sys/dev/usb sys/dev/usb/net sys/modules/usb sys/modules/usb/mos

Hans Petter Selasky hselasky at c2i.net
Wed Feb 16 09:18:37 UTC 2011


Hi,

There was a minor missing delta in if_mos.c, needed for build with USB_DEBUG 
set on AMD64. Can someone approve that I commit this, hence my mentor just 
went offline :-)

--HPS
-------------- next part --------------
==== Patch <if_mos_fix.txt> level 1
Source: [No source]
Target: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f:/head/sys/dev/usb/net:218729 [mirrored]
        (svn+ssh://hselasky@svn.freebsd.org/base)
Log:
Fix build breakage in if_mos.c when USB_DEBUG option is set.

Approved by:	thompsa (mentor)


=== if_mos.c
==================================================================
--- if_mos.c	(revision 218729)
+++ if_mos.c	(patch if_mos_fix.txt level 1)
@@ -814,7 +814,7 @@
 		/* Remember the last byte was used for the status fields */
 		pktlen = actlen - 1;
 		if (pktlen < sizeof(struct ether_header)) {
-			MOS_DPRINTFN("error: pktlen %i is smaller than ether_header %i", pktlen, sizeof(struct ether_header));
+			MOS_DPRINTFN("error: pktlen %i is smaller than ether_header %i", pktlen, (int)sizeof(struct ether_header));
 			ifp->if_ierrors++;
 			goto tr_setup;
 		}


More information about the svn-src-head mailing list