diff --git a/main.c b/main.c index 599beb5..d29481d 100644 --- a/main.c +++ b/main.c @@ -13,7 +13,7 @@ #define HOSTNAME "localhost" #define EVENT_SIZE (sizeof(struct inotify_event)) -int debug = 0; +int debug = 1; struct connexion { @@ -338,7 +338,7 @@ int getpids(int pid, int exploded[]) int x = 0; sprintf( path, "/proc/%d/task/%d/children", pid, pid); - if (debug >= 1) printf("process path: %s", path); + if (debug >= 2) printf("process path: %s\n", path); if ((fh = fopen( path, "r")) == NULL) { if (debug >= 1) perror(path);