Convert lots of fprintf(stderr, ...) to glibtop_debug*().

This commit is contained in:
Benoit Dejean
2015-06-21 22:39:11 +02:00
parent 887092a05d
commit 172f0a50ba
10 changed files with 22 additions and 65 deletions

View File

@@ -56,9 +56,7 @@ glibtop_open_p (glibtop *server, const char *program_name,
const unsigned flags)
{
char errbuf[_POSIX2_LINE_MAX];
#ifdef LIBGTOP_ENABLE_DEBUG
fprintf (stderr, "DEBUG (%d): glibtop_open_p ()\n", getpid ());
#endif
glibtop_debug ("glibtop_open_p ()");
/* !!! WE ARE ROOT HERE - CHANGE WITH CAUTION !!! */
server->machine.uid = getuid ();