qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH V2 0/4] imx.31 and KZM board support


From: Peter Chubb
Subject: Re: [Qemu-devel] [PATCH V2 0/4] imx.31 and KZM board support
Date: Wed, 23 Nov 2011 11:51:19 +1100
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.8 Emacs/23.3 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

>>>>> "Peter" == Peter Chubb <address@hidden> writes:


Peter> All comments received so far have been addressed --- I've added
Peter> a macro, `scream' that gives at most 10 lines of output for OS
Peter> error reporting.

Except I noticed a thinko in the macro.  The decrement should be
inside the guard, thus:

#define scream(fmt, args...) \
    do { \
        static int printable = 10;\
        if (printable) { \
            printable--;\
            fprintf(stderr, fmt, ##args); \
        } \
    } while (0)


--
Dr Peter Chubb  http://www.gelato.unsw.edu.au  peterc AT gelato.unsw.edu.au
http://www.ertos.nicta.com.au           ERTOS within National ICT Australia



reply via email to

[Prev in Thread] Current Thread [Next in Thread]