projects
/
geeqie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cf90f24
)
Annotate debug_exception() with source file, line, and function.
author
Emil Mikulic
<emikulic@gmail.com>
Sun, 21 Apr 2013 04:57:37 +0000
(14:57 +1000)
committer
Emil Mikulic
<emikulic@gmail.com>
Sun, 21 Apr 2013 04:57:37 +0000
(14:57 +1000)
src/exiv2.cc
patch
|
blob
|
history
diff --git
a/src/exiv2.cc
b/src/exiv2.cc
index
b0f6560
..
455c8d3
100644
(file)
--- a/
src/exiv2.cc
+++ b/
src/exiv2.cc
@@
-101,13
+101,18
@@
static const AltKey alt_keys[] = {
{NULL, NULL, NULL}
};
{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);
{
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);
}
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 */
struct _ExifData
{
Exiv2::ExifData::const_iterator exifIter; /* for exif_get_next_item */