summaryrefslogtreecommitdiff
path: root/os/utils.c
diff options
context:
space:
mode:
authorTiago Vignatti <tiago.vignatti@nokia.com>2011-03-28 19:19:57 +0300
committerTiago Vignatti <tiago.vignatti@nokia.com>2011-04-04 15:41:47 +0300
commitbafec9a25efa902bef2a3730dc44dc50f0e45877 (patch)
tree832be8513cfe068498133c4d4c58c3ea8f7c88ac /os/utils.c
parent719b37c33a89d6ad86c79097e5c67b9b3cea5aac (diff)
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>
Diffstat (limited to 'os/utils.c')
-rw-r--r--os/utils.c18
1 files changed, 4 insertions, 14 deletions
diff --git a/os/utils.c b/os/utils.c
index a365aca81..f47177f4f 100644
--- a/os/utils.c
+++ b/os/utils.c
@@ -1256,10 +1256,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 */
@@ -1371,9 +1368,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;
}
@@ -1448,9 +1443,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
@@ -1479,10 +1472,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)