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

Pawel Jakub Dawidek pjd at FreeBSD.org
Fri Jan 28 10:11:20 UTC 2011


On Fri, Jan 28, 2011 at 08:00:57AM +0000, Hans Petter Selasky wrote:
> Author: hselasky
> Date: Fri Jan 28 08:00:57 2011
> New Revision: 218010
> URL: http://svn.freebsd.org/changeset/base/218010
> 
> Log:
>   - Remove double semicolon.
>   - Remove reference to sprintf. Use printf directly. This part of
>   the code should be optimised further to avoid many small printouts.
>   Setting a sensible line buffer length could help aswell when printing
>   out megabytes of data per second.
>   
>   Approved by:	thompsa (mentor)
[...]
> +#define EMIT(fmt, ...)	do {		\
> +	printf(fmt,## __VA_ARGS__);	\
>  } while (0)

Or:

#define	EMIT(...)	printf(__VA_ARGS__)

-- 
Pawel Jakub Dawidek                       http://www.wheelsystems.com
pjd at FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-all/attachments/20110128/d59294ff/attachment.pgp


More information about the svn-src-all mailing list