summaryrefslogtreecommitdiff
path: root/src/items.c
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2009-04-11 15:43:15 +0200
committerTomas Bzatek <tbzatek@users.sourceforge.net>2009-04-11 15:43:15 +0200
commit9c2c964727e4a484acf7f97267a3cf1c8fbacd89 (patch)
tree261f5ffe6954aaecb2f7ad29edfa459ae0971148 /src/items.c
parent6a54c7817bb71fde9234e7b89e87f1f349920ea1 (diff)
downloadcataract-9c2c964727e4a484acf7f97267a3cf1c8fbacd89.tar.xz
Print statistics in verbose mode
Diffstat (limited to 'src/items.c')
-rw-r--r--src/items.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/items.c b/src/items.c
index 255ef5f..2b9a1ad 100644
--- a/src/items.c
+++ b/src/items.c
@@ -26,6 +26,7 @@
#include "items.h"
#include "xml-parser.h"
+#include "gallery-utils.h"
@@ -65,7 +66,7 @@ parse_album_xml (const char *filename, TAlbum *index)
if (strcmp (gallery_type, "album") == 0)
index->type = GALLERY_TYPE_ALBUM;
else {
- printf ("Invalid gallery type (%s)\n", gallery_type);
+ log_error ("Invalid gallery type (%s)\n", gallery_type);
free (index);
return FALSE;
}
@@ -182,7 +183,7 @@ parse_album_xml (const char *filename, TAlbum *index)
}
else
{
- fprintf (stderr, "%s: No image src specified, skipping!\n", filename);
+ log_error ("%s: No image src specified, skipping!\n", filename);
free (item);
}
}