summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2008-01-03 05:37:18 +0000
committer Aaron Giles <aaron@aarongiles.com>2008-01-03 05:37:18 +0000
commit422ccce762edc5e328f07ffa42ada1d72676e616 (patch)
tree781dd7745b5d4992fae44724c55b902e125586b8 /src/mame
parent25eee632f605f5e80ba5b076566b39e46078b4a9 (diff)
(From Oliver Stoneberg)
This is an updated version of my earlier ATTR_PRINTF patch. It was reviewed by Atari Ace to use ATTR_PRINTF properly and fixes even more format errors. I also reviewed the whole source again and it is now used in all possible places.
Diffstat (limited to 'src/mame')
-rw-r--r--src/mame/drivers/ksys573.c10
-rw-r--r--src/mame/drivers/namcos11.c2
-rw-r--r--src/mame/drivers/namcos12.c2
-rw-r--r--src/mame/drivers/zn.c2
-rw-r--r--src/mame/machine/psx.c4
-rw-r--r--src/mame/machine/zs01.c4
-rw-r--r--src/mame/video/psx.c2
7 files changed, 13 insertions, 13 deletions
diff --git a/src/mame/drivers/ksys573.c b/src/mame/drivers/ksys573.c
index 8afc8cf8755..f508bd1392b 100644
--- a/src/mame/drivers/ksys573.c
+++ b/src/mame/drivers/ksys573.c
@@ -222,7 +222,7 @@
#define VERBOSE_LEVEL ( 0 )
-INLINE void verboselog( int n_level, const char *s_fmt, ... )
+INLINE void ATTR_PRINTF(2,3) verboselog( int n_level, const char *s_fmt, ... )
{
if( VERBOSE_LEVEL >= n_level )
{
@@ -289,7 +289,7 @@ static WRITE32_HANDLER( mb89371_w )
static READ32_HANDLER( mb89371_r )
{
UINT32 data = 0xffffffff;
- verboselog( 2, "mb89371_r %08x %08x\n", offset, mem_mask, data );
+ verboselog( 2, "mb89371_r %08x %08x %08x\n", offset, mem_mask, data );
return data;
}
@@ -2002,13 +2002,13 @@ static READ32_HANDLER( gtrfrks_io_r )
break;
}
- verboselog( 2, "gtrfrks_io_r( %08x, %08x ) %08x\n", data );
+ verboselog( 2, "gtrfrks_io_r( %08x, %08x ) %08x\n", offset, mem_mask, data );
return data;
}
static WRITE32_HANDLER( gtrfrks_io_w )
{
- verboselog( 2, "gtrfrks_io_w( %08x, %08x ) %08x\n", data );
+ verboselog( 2, "gtrfrks_io_w( %08x, %08x ) %08x\n", offset, mem_mask, data );
switch( offset )
{
@@ -2621,7 +2621,7 @@ static void dmx_output_callback( int offset, int data )
static WRITE32_HANDLER( dmx_io_w )
{
- verboselog( 2, "dmx_io_w( %08x, %08x ) %08x\n", data );
+ verboselog( 2, "dmx_io_w( %08x, %08x ) %08x\n", offset, mem_mask, data );
switch( offset )
{
diff --git a/src/mame/drivers/namcos11.c b/src/mame/drivers/namcos11.c
index 91dd43b4c38..d24b35f30a1 100644
--- a/src/mame/drivers/namcos11.c
+++ b/src/mame/drivers/namcos11.c
@@ -273,7 +273,7 @@ Notes:
#define VERBOSE_LEVEL ( 0 )
-INLINE void verboselog( int n_level, const char *s_fmt, ... )
+INLINE void ATTR_PRINTF(2,3) verboselog( int n_level, const char *s_fmt, ... )
{
if( VERBOSE_LEVEL >= n_level )
{
diff --git a/src/mame/drivers/namcos12.c b/src/mame/drivers/namcos12.c
index 211ca245c6c..64595fe1c81 100644
--- a/src/mame/drivers/namcos12.c
+++ b/src/mame/drivers/namcos12.c
@@ -931,7 +931,7 @@ Notes:
#define VERBOSE_LEVEL ( 0 )
-INLINE void verboselog( int n_level, const char *s_fmt, ... )
+INLINE void ATTR_PRINTF(2,3) verboselog( int n_level, const char *s_fmt, ... )
{
if( VERBOSE_LEVEL >= n_level )
{
diff --git a/src/mame/drivers/zn.c b/src/mame/drivers/zn.c
index e908bf4817f..3f7a833479f 100644
--- a/src/mame/drivers/zn.c
+++ b/src/mame/drivers/zn.c
@@ -26,7 +26,7 @@
#define VERBOSE_LEVEL ( 0 )
-INLINE void verboselog( int n_level, const char *s_fmt, ... )
+INLINE void ATTR_PRINTF(2,3) verboselog( int n_level, const char *s_fmt, ... )
{
if( VERBOSE_LEVEL >= n_level )
{
diff --git a/src/mame/machine/psx.c b/src/mame/machine/psx.c
index d1d9216b3f3..0754d6e788d 100644
--- a/src/mame/machine/psx.c
+++ b/src/mame/machine/psx.c
@@ -13,7 +13,7 @@
#define VERBOSE_LEVEL ( 0 )
-INLINE void verboselog( int n_level, const char *s_fmt, ... )
+INLINE void ATTR_PRINTF(2,3) verboselog( int n_level, const char *s_fmt, ... )
{
if( VERBOSE_LEVEL >= n_level )
{
@@ -726,7 +726,7 @@ static void sio_timer_adjust( int n_port )
if( m_p_n_sio_baud[ n_port ] != 0 && n_prescaler != 0 )
{
n_time = attotime_mul(ATTOTIME_IN_HZ(33868800), n_prescaler * m_p_n_sio_baud[n_port]);
- verboselog( 2, "sio_timer_adjust( %d ) = %f ( %d x %d )\n", n_port, n_time, n_prescaler, m_p_n_sio_baud[ n_port ] );
+ verboselog( 2, "sio_timer_adjust( %d ) = %s ( %d x %d )\n", n_port, attotime_string(n_time, 9), n_prescaler, m_p_n_sio_baud[ n_port ] );
}
else
{
diff --git a/src/mame/machine/zs01.c b/src/mame/machine/zs01.c
index b445c05d02c..c8f7689aa4f 100644
--- a/src/mame/machine/zs01.c
+++ b/src/mame/machine/zs01.c
@@ -12,7 +12,7 @@
#define VERBOSE_LEVEL ( 0 )
-INLINE void verboselog( int n_level, const char *s_fmt, ... )
+INLINE void ATTR_PRINTF(2,3) verboselog( int n_level, const char *s_fmt, ... )
{
if( VERBOSE_LEVEL >= n_level )
{
@@ -532,7 +532,7 @@ void zs01_scl_write( int chip, int scl )
memset( &c->read_buffer[ 0 ], 0xff, 2 );
}
- verboselog( 1, "zs01(%d) <- status: %02x%02\n", chip,
+ verboselog( 1, "zs01(%d) <- status: %02x%02x\n", chip,
c->read_buffer[ 0 ], c->read_buffer[ 1 ] );
verboselog( 1, "zs01(%d) <- data: %02x%02x%02x%02x%02x%02x%02x%02x\n", chip,
diff --git a/src/mame/video/psx.c b/src/mame/video/psx.c
index 2ad84472302..7a47a3b95ec 100644
--- a/src/mame/video/psx.c
+++ b/src/mame/video/psx.c
@@ -25,7 +25,7 @@
#define VERBOSE_LEVEL ( 0 )
-INLINE void verboselog( int n_level, const char *s_fmt, ... )
+INLINE void ATTR_PRINTF(2,3) verboselog( int n_level, const char *s_fmt, ... )
{
if( VERBOSE_LEVEL >= n_level )
{