X-Git-Url: http://geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=blobdiff_plain;f=src%2Fexiv2.cc;fp=src%2Fexiv2.cc;h=455c8d392d6eaf2471ac5d5626b875d023488ecb;hp=b0f6560151ad2d8eac7e6df42c1c675bf443ef8b;hb=de24ca6e169fc08e2bc6db1ee9054bd77b6623b0;hpb=89d8c20e495e2b59fd98899f772aafa361c0cbec diff --git a/src/exiv2.cc b/src/exiv2.cc index b0f65601..455c8d39 100644 --- a/src/exiv2.cc +++ b/src/exiv2.cc @@ -101,13 +101,18 @@ static const AltKey alt_keys[] = { {NULL, NULL, NULL} }; -static void debug_exception(Exiv2::AnyError& e) +static void _debug_exception(const char* file, + int line, + const char* func, + Exiv2::AnyError& e) { gchar *str = g_locale_from_utf8(e.what(), -1, NULL, NULL, NULL); - DEBUG_1("Exiv2: %s", str); + DEBUG_1("%s:%d:%s:Exiv2: %s", file, line, func, str); g_free(str); } +#define debug_exception(e) _debug_exception(__FILE__, __LINE__, __func__, e) + struct _ExifData { Exiv2::ExifData::const_iterator exifIter; /* for exif_get_next_item */