Mercurial > hg > forks > geeqie
changeset 2227:44a42a639ef5
Annotate debug_exception() with source file, line, and function.
author | Emil Mikulic <emikulic@gmail.com> |
---|---|
date | Sun, 21 Apr 2013 14:57:37 +1000 |
parents | 4617e1d83e9b |
children | 686851ab0211 |
files | src/exiv2.cc |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/exiv2.cc Sun Oct 28 12:07:41 2012 +0100 +++ b/src/exiv2.cc Sun Apr 21 14:57:37 2013 +1000 @@ -101,13 +101,18 @@ {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 */