mirror of https://github.com/tstellar/bygfoot.git
Put the zip debug messages in between ifdef debug
This commit is contained in:
parent
35ffb61314
commit
4b538201a1
10
src/file.c
10
src/file.c
|
@ -897,7 +897,9 @@ file_remove_files(const GPtrArray *files)
|
||||||
gint i;
|
gint i;
|
||||||
for(i=0;i<files->len;i++)
|
for(i=0;i<files->len;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));
|
int rc = g_remove((gchar*)g_ptr_array_index(files, i));
|
||||||
if (rc==-1) {
|
if (rc==-1) {
|
||||||
printf("Problem Removing File %s\n", (gchar*)g_ptr_array_index(files, i));
|
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)
|
if (fout!=NULL)
|
||||||
{
|
{
|
||||||
printf(" extracting: %s\n",filename_inzip);
|
#ifdef DEBUG
|
||||||
|
printf(" extracting: %s\n",filename_inzip);
|
||||||
|
#endif
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
@ -1113,8 +1117,10 @@ int do_compress_currentfile(zipFile zf, char* fileToZip)
|
||||||
printf("error zip file not open");
|
printf("error zip file not open");
|
||||||
err= ZIP_ERRNO;
|
err= ZIP_ERRNO;
|
||||||
}
|
}
|
||||||
|
#ifdef DEBUG
|
||||||
else
|
else
|
||||||
printf("creating %s\n",fileToZip);
|
printf("creating %s\n",fileToZip);
|
||||||
|
#endif
|
||||||
|
|
||||||
FILE * fin;
|
FILE * fin;
|
||||||
int size_read;
|
int size_read;
|
||||||
|
|
Loading…
Reference in New Issue