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:
parent
719b37c33a
commit
bafec9a25e
18
os/utils.c
18
os/utils.c
|
@ -1256,10 +1256,7 @@ System(char *command)
|
||||||
perror("signal");
|
perror("signal");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
DebugF("System: `%s'\n", command);
|
||||||
#ifdef DEBUG
|
|
||||||
ErrorF("System: `%s'\n", command);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
switch (pid = fork()) {
|
switch (pid = fork()) {
|
||||||
case -1: /* error */
|
case -1: /* error */
|
||||||
|
@ -1371,9 +1368,7 @@ Popen(char *command, char *type)
|
||||||
cur->next = pidlist;
|
cur->next = pidlist;
|
||||||
pidlist = cur;
|
pidlist = cur;
|
||||||
|
|
||||||
#ifdef DEBUG
|
DebugF("Popen: `%s', fp = %p\n", command, iop);
|
||||||
ErrorF("Popen: `%s', fp = %p\n", command, iop);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
return iop;
|
return iop;
|
||||||
}
|
}
|
||||||
|
@ -1448,9 +1443,7 @@ Fopen(char *file, char *type)
|
||||||
cur->next = pidlist;
|
cur->next = pidlist;
|
||||||
pidlist = cur;
|
pidlist = cur;
|
||||||
|
|
||||||
#ifdef DEBUG
|
DebugF("Fopen(%s), fp = %p\n", file, iop);
|
||||||
ErrorF("Fopen(%s), fp = %p\n", file, iop);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
return iop;
|
return iop;
|
||||||
#else
|
#else
|
||||||
|
@ -1479,10 +1472,7 @@ Pclose(pointer iop)
|
||||||
int pstat;
|
int pstat;
|
||||||
int pid;
|
int pid;
|
||||||
|
|
||||||
#ifdef DEBUG
|
DebugF("Pclose: fp = %p\n", iop);
|
||||||
ErrorF("Pclose: fp = %p\n", iop);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
fclose(iop);
|
fclose(iop);
|
||||||
|
|
||||||
for (last = NULL, cur = pidlist; cur; last = cur, cur = cur->next)
|
for (last = NULL, cur = pidlist; cur; last = cur, cur = cur->next)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user