summaryrefslogtreecommitdiff
path: root/src/items.c
diff options
context:
space:
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);
}
}