]> pd.if.org Git - pdclib/blobdiff - functions/stdio/vsnprintf.c
Better error reporting on printf's.
[pdclib] / functions / stdio / vsnprintf.c
index 165ed54ce3a1fb600e317a383c7075edbd955a6f..9e54dca1bb392076e07c0566fa6449403b24b90b 100644 (file)
@@ -48,6 +48,7 @@ int vsnprintf( char * _PDCLIB_restrict s, size_t n, const char * _PDCLIB_restric
 #endif
 
 #ifdef TEST
+#define _PDCLIB_FILEID "stdio/vsnprintf.c"
 #include <_PDCLIB_test.h>
 
 #include <limits.h>
@@ -64,9 +65,6 @@ static int testprintf( char * s, const char * format, ... )
     return i;
 }
 
-#define TESTCASE_SPRINTF( x ) if ( strcmp( target, x ) == 0 ) {} \
-                              else { TEST_RESULTS += 1; printf( "FAILED: " __FILE__ ", line %d - \"%s\" != %s\n", __LINE__, target, #x ); }
-
 int main( void )
 {
     char target[100];