os: use DebugF for debugging

Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Nicolas Peninguy <nico@lostgeeks.org>
This commit is contained in:
Tiago Vignatti 2011-03-28 19:19:57 +03:00
parent 3fe4ce84eb
commit 39831373e2

View file

@ -1267,10 +1267,7 @@ System(char *command)
perror("signal");
return -1;
}
#ifdef DEBUG
ErrorF("System: `%s'\n", command);
#endif
DebugF("System: `%s'\n", command);
switch (pid = fork()) {
case -1: /* error */
@ -1382,9 +1379,7 @@ Popen(char *command, char *type)
cur->next = pidlist;
pidlist = cur;
#ifdef DEBUG
ErrorF("Popen: `%s', fp = %p\n", command, iop);
#endif
DebugF("Popen: `%s', fp = %p\n", command, iop);
return iop;
}
@ -1459,9 +1454,7 @@ Fopen(char *file, char *type)
cur->next = pidlist;
pidlist = cur;
#ifdef DEBUG
ErrorF("Fopen(%s), fp = %p\n", file, iop);
#endif
DebugF("Fopen(%s), fp = %p\n", file, iop);
return iop;
#else
@ -1490,10 +1483,7 @@ Pclose(pointer iop)
int pstat;
int pid;
#ifdef DEBUG
ErrorF("Pclose: fp = %p\n", iop);
#endif
DebugF("Pclose: fp = %p\n", iop);
fclose(iop);
for (last = NULL, cur = pidlist; cur; last = cur, cur = cur->next)