>>>>> "Peter" == Peter Chubb <peter.ch...@nicta.com.au> 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