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 p...@freebsd.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am!
pgpVTbnMXHceg.pgp
Description: PGP signature