Mercurial > hg > Members > kono > Cerium
diff TaskManager/include/error.h @ 736:31d0a5baafdf
cut printf
author | hiroki@localhost.localdomain |
---|---|
date | Sun, 27 Dec 2009 20:39:33 +0900 |
parents | 09f33c51a204 |
children |
line wrap: on
line diff
--- a/TaskManager/include/error.h Fri Dec 25 20:20:40 2009 +0900 +++ b/TaskManager/include/error.h Sun Dec 27 20:39:33 2009 +0900 @@ -3,8 +3,8 @@ #ifdef DEBUG # include <stdio.h> -# define __debug(...) do { \ - fprintf(stderr, __VA_ARGS__); \ +# define __debugs(s, ...) do { \ + s->printf(__VA_ARGS__); \ } while (0) #else /* DEBUG */ # define __debug(...) @@ -12,8 +12,8 @@ #ifdef DEBUG # include <stdio.h> -# define __debug_ppe(...) do { \ - printf("[PPE] "); printf(__VA_ARGS__); \ +# define __debugs_ppe(s, ...) do { \ + s->printf("[PPE] ", __VA_ARGS__); \ } while (0) #else /* DEBUG */ # define __debug_ppe(...) @@ -21,8 +21,8 @@ #ifdef DEBUG # include <stdio.h> -# define __debug_spe(...) do { \ - printf("[SPE] "); printf(__VA_ARGS__); \ +# define __debugs_spe(s, ...) do { \ + s->printf("[SPE] ", __VA_ARGS__); \ } while (0) #else /* DEBUG */ # define __debug_spe(...)