From b9dd33e240345cb51f9c8a6b372e71de15fefc38 Mon Sep 17 00:00:00 2001 From: Shlomi Fish Date: Fri, 22 Oct 2021 11:37:44 +0300 Subject: [PATCH] refactoring: remove unhelpful debugprints --- fortune-mod/fortune/fortune.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/fortune-mod/fortune/fortune.c b/fortune-mod/fortune/fortune.c index 5d73ff9..9bf165e 100644 --- a/fortune-mod/fortune/fortune.c +++ b/fortune-mod/fortune/fortune.c @@ -581,7 +581,7 @@ static int add_file(int percent, const char *file, const char *dir, ((fd = open4read(path)) < 0)) || !path_is_absolute(path)) { - debugprint("sarahhhhh fd=%d path=<%s> dir=<%s> file=<%s> percent=%d\n", + debugprint("check file fd=%d path=<%s> dir=<%s> file=<%s> percent=%d\n", fd, path, dir, file, percent); bool found = false; if (!dir && (!strchr(file, '/'))) @@ -640,13 +640,11 @@ static int add_file(int percent, const char *file, const char *dir, } if (!ret) { - debugprint("moshe\n"); perror(path); } } else { - debugprint("abe\n"); perror(path); } } @@ -755,7 +753,6 @@ static int add_dir(FILEDESC *const fp) fp->fd = -1; if (!(dir = opendir(fp->path))) { - debugprint("yonah\n"); perror(fp->path); return false; } @@ -767,7 +764,6 @@ static int add_dir(FILEDESC *const fp) names = malloc(sizeof(names[0]) * max_count_names); if (!names) { - debugprint("zach\n"); perror("Out of RAM!"); exit(-1); } @@ -782,7 +778,6 @@ static int add_dir(FILEDESC *const fp) names = realloc(names, sizeof(names[0]) * max_count_names); if (!names) { - debugprint("rebecca\n"); perror("Out of RAM!"); exit(-1); } -- 2.40.0