Add printf attribute to log_err/DPRINTF and fix a few warnings

Modified to not use %z for portability reasons.
This commit is contained in:
Catalin Patulea authored and Justin Maggard committed 2014-04-10 18:57:30 -07:00
1 parent 45cf9208fb
commit 3a57744735
11 files changed
+30 -22

No files matched your search

+2 -1
View File
@@ -236,7 +236,8 @@ check_embedded_art(const char *path, const char *image_data, int image_size)
fclose(dstfile);
if( nwritten != image_size )
{
DPRINTF(E_WARN, L_METADATA, "Embedded art error: wrote %d/%d bytes\n", nwritten, image_size);
DPRINTF(E_WARN, L_METADATA, "Embedded art error: wrote %lu/%d bytes\n",
(unsigned long)nwritten, image_size);
remove(art_path);
free(art_path);
art_path = NULL;