From 32920d49ccf28bec64a5dc98cb0c750d6af1bc78 Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Sun, 17 May 2020 23:04:19 +0200 Subject: [PATCH] added \n --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);