[libgtop] Also display file/line/function in debug messages.
- From: Benoît Dejean <bdejean src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgtop] Also display file/line/function in debug messages.
- Date: Sat, 8 Aug 2015 08:56:48 +0000 (UTC)
commit d30fbb22e022f485b06fe69a89d70542e50358aa
Author: Benoit Dejean <bdejean gmail com>
Date: Sun Jul 19 22:03:39 2015 +0200
Also display file/line/function in debug messages.
include/glibtop/error.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/include/glibtop/error.h b/include/glibtop/error.h
index fdce2fd..d5cc481 100644
--- a/include/glibtop/error.h
+++ b/include/glibtop/error.h
@@ -50,7 +50,7 @@ void glibtop_warn_io (const char *format, ...) G_GNUC_PRINTF(1, 2);
#define glibtop_debug_r(server, fmt, ...) \
G_STMT_START { \
if (LIBGTOP_ENABLE_DEBUG) \
- glibtop_debug_r_real(server, fmt, ##__VA_ARGS__); \
+ glibtop_debug_r_real(server, "%s:%d %s(): " fmt, __FILE__, __LINE__, __func__,
##__VA_ARGS__); \
} G_STMT_END
#define glibtop_debug(...) glibtop_debug_r(glibtop_global_server, __VA_ARGS__)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]