From 9c2c964727e4a484acf7f97267a3cf1c8fbacd89 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sat, 11 Apr 2009 15:43:15 +0200 Subject: Print statistics in verbose mode --- src/items.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/items.c') 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); } } -- cgit v1.2.3