diff options
Diffstat (limited to 'tst')
-rw-r--r-- | tst/va_test.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tst/va_test.c b/tst/va_test.c index 9b527f2..96cd65d 100644 --- a/tst/va_test.c +++ b/tst/va_test.c @@ -7,8 +7,9 @@ #define espik_debug_print(fmt, ...) \ { \ - fprintf (stdout, "%s, %s, %i: \n", __func__, __FILE__, __LINE__); \ - vfprintf (stdout, fmt, __VA_ARGS__); \ + fprintf (stdout, "%s+%i @%s: '", __FILE__, __LINE__, __func__); \ + fprintf (stdout, fmt, __VA_ARGS__); \ + fprintf (stdout, "'\n"); \ } #endif /* __GNUC__ */ @@ -17,7 +18,7 @@ int main() { int a = 10; - espik_debug_print ("a : %d\n", a); + espik_debug_print ("a : %d", a); return (0); } |