Date: Mon, 29 Mar 2010 17:24:23 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r205842 - head/sys/dev/firewire Message-ID: <201003291724.o2THONbX021471@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: imp Date: Mon Mar 29 17:24:23 2010 New Revision: 205842 URL: http://svn.freebsd.org/changeset/base/205842 Log: Cast a bus_size_t to a (size_t) to use %zd specifier. Not quite the right thing to do, but it is in compat code I don't want to sort out at the moment. Modified: head/sys/dev/firewire/sbp.c Modified: head/sys/dev/firewire/sbp.c ============================================================================== --- head/sys/dev/firewire/sbp.c Mon Mar 29 17:09:04 2010 (r205841) +++ head/sys/dev/firewire/sbp.c Mon Mar 29 17:24:23 2010 (r205842) @@ -2698,7 +2698,7 @@ SBP_DEBUG(0) #else "segment length(%zd) is less than 16." #endif - "(seg=%d/%d)\n", s->ds_len, i+1, seg); + "(seg=%d/%d)\n", (size_t)s->ds_len, i+1, seg); END_DEBUG if (s->ds_len > SBP_SEG_MAX) panic("ds_len > SBP_SEG_MAX, fix busdma code");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003291724.o2THONbX021471>