| Previous | 15994 Revisions | Next |
| r3882 Friday 19th December, 2008 at 15:53:10 UTC by Firewave |
|---|
| Added ATTR_PRINTF where necessary |
| [src/mess] | pile.h |
| [src/mess/drivers] | ip20.c ip22.c |
| [src/mess/machine] | atarifdc.c |
| [src/mess/video] | newport.c |
| r3881 | r3882 | |
|---|---|---|
| 29 | 29 | |
| 30 | 30 | #define VERBOSE_LEVEL ( 0 ) |
| 31 | 31 | |
| 32 | INLINE void verboselog(running_machine *machine, int n_level, const char *s_fmt, ... ) | |
| 32 | INLINE void ATTR_PRINTF(3,4) verboselog(running_machine *machine, int n_level, const char *s_fmt, ... ) | |
| 33 | 33 | { |
| 34 | 34 | if( VERBOSE_LEVEL >= n_level ) |
| 35 | 35 | { |
| r3881 | r3882 | |
|---|---|---|
| 402 | 402 | make_chksum(&atari_fdc.serin_chksum, data); |
| 403 | 403 | } |
| 404 | 404 | |
| 405 | static void atari_set_frame_message(running_machine *machine, const char *fmt, ...) | |
| 405 | static void ATTR_PRINTF(2,3) atari_set_frame_message(running_machine *machine, const char *fmt, ...) | |
| 406 | 406 | { |
| 407 | 407 | va_list arg; |
| 408 | 408 | va_start(arg, fmt); |
| r3881 | r3882 | |
|---|---|---|
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | int pile_vprintf(mess_pile *pile, const char *fmt, va_list args); |
| 41 | #ifdef __GNUC__ | |
| 42 | int pile_printf(mess_pile *pile, const char *fmt, ...)/* ATTR_PRINTF(2,3)*/__attribute__((format(printf, 2, 3))); | |
| 43 | #else | |
| 41 | 44 | int pile_printf(mess_pile *pile, const char *fmt, ...)/* ATTR_PRINTF(2,3)*/; |
| 45 | #endif | |
| 42 | 46 | int pile_putc(mess_pile *pile, char c); |
| 43 | 47 | int pile_puts(mess_pile *pile, const char *s); |
| 44 | 48 |
| r3881 | r3882 | |
|---|---|---|
| 59 | 59 | |
| 60 | 60 | static UINT32 *ip22_mainram; |
| 61 | 61 | |
| 62 | INLINE void verboselog( running_machine *machine, int n_level, const char *s_fmt, ... ) | |
| 62 | INLINE void ATTR_PRINTF(3,4) verboselog( running_machine *machine, int n_level, const char *s_fmt, ... ) | |
| 63 | 63 | { |
| 64 | 64 | if( VERBOSE_LEVEL >= n_level ) |
| 65 | 65 | { |
| r3881 | r3882 | |
|---|---|---|
| 29 | 29 | |
| 30 | 30 | #define VERBOSE_LEVEL ( 2 ) |
| 31 | 31 | |
| 32 | INLINE void verboselog(running_machine *machine, int n_level, const char *s_fmt, ... ) | |
| 32 | INLINE void ATTR_PRINTF(3,4) verboselog(running_machine *machine, int n_level, const char *s_fmt, ... ) | |
| 33 | 33 | { |
| 34 | 34 | if( VERBOSE_LEVEL >= n_level ) |
| 35 | 35 | { |
| Previous | 15994 Revisions | Next |