From 4b538201a18c2ac3f444a6265a8e09163fac1a92 Mon Sep 17 00:00:00 2001 From: gunnar_g Date: Sat, 19 Feb 2011 21:55:47 +0000 Subject: [PATCH] Put the zip debug messages in between ifdef debug --- src/file.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/file.c b/src/file.c index 49fbbe06..4d87d132 100644 --- a/src/file.c +++ b/src/file.c @@ -897,7 +897,9 @@ file_remove_files(const GPtrArray *files) gint i; for(i=0;ilen;i++) { - printf("Removing File %s\n", (gchar*)g_ptr_array_index(files, i)); + #ifdef DEBUG + printf("Removing File %s\n", (gchar*)g_ptr_array_index(files, i)); + #endif int rc = g_remove((gchar*)g_ptr_array_index(files, i)); if (rc==-1) { printf("Problem Removing File %s\n", (gchar*)g_ptr_array_index(files, i)); @@ -1060,7 +1062,9 @@ int do_extract_currentfile(unzFile uf, gchar *extracted_file) if (fout!=NULL) { - printf(" extracting: %s\n",filename_inzip); + #ifdef DEBUG + printf(" extracting: %s\n",filename_inzip); + #endif do { @@ -1113,8 +1117,10 @@ int do_compress_currentfile(zipFile zf, char* fileToZip) printf("error zip file not open"); err= ZIP_ERRNO; } + #ifdef DEBUG else printf("creating %s\n",fileToZip); + #endif FILE * fin; int size_read;