summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-10-07 10:38:56 +0200
committerSven Gothel <[email protected]>2020-10-07 10:38:56 +0200
commit2bcf29159c8621ffecb94c460cb4fad8ad5aaa49 (patch)
tree7cbcd7dedc173731225e876df35034aedd748972 /src
parent581260d3f4144df3716eac736c9e8792be264edb (diff)
dbt_debug: Add __func__ to ABORT, ERR_PRINT, IRQ_PRINT and WARN_PRINT
Diffstat (limited to 'src')
-rw-r--r--src/direct_bt/dbt_debug.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/direct_bt/dbt_debug.cpp b/src/direct_bt/dbt_debug.cpp
index 1dddd095..fe536f9b 100644
--- a/src/direct_bt/dbt_debug.cpp
+++ b/src/direct_bt/dbt_debug.cpp
@@ -53,8 +53,8 @@ void direct_bt::WORDY_PRINT(const char * format, ...) noexcept {
}
}
-void direct_bt::ABORT_impl(const char *file, const int line, const char * format, ...) noexcept {
- fprintf(stderr, "[%'9" PRIu64 "] ABORT @ %s:%d: ", DBTEnv::getElapsedMillisecond(), file, line);
+void direct_bt::ABORT_impl(const char *func, const char *file, const int line, const char * format, ...) noexcept {
+ fprintf(stderr, "[%'9" PRIu64 "] ABORT @ %s:%d %s: ", DBTEnv::getElapsedMillisecond(), file, line, func);
va_list args;
va_start (args, format);
vfprintf(stderr, format, args);
@@ -64,15 +64,15 @@ void direct_bt::ABORT_impl(const char *file, const int line, const char * format
abort();
}
-void direct_bt::ERR_PRINTv(const char *file, const int line, const char * format, va_list args) noexcept {
- fprintf(stderr, "[%'9" PRIu64 "] Error @ %s:%d: ", DBTEnv::getElapsedMillisecond(), file, line);
+void direct_bt::ERR_PRINTv(const char *func, const char *file, const int line, const char * format, va_list args) noexcept {
+ fprintf(stderr, "[%'9" PRIu64 "] Error @ %s:%d %s: ", DBTEnv::getElapsedMillisecond(), file, line, func);
vfprintf(stderr, format, args);
fprintf(stderr, "; last errno %d %s\n", errno, strerror(errno));
fflush(stderr);
}
-void direct_bt::ERR_PRINT_impl(const char *prefix, const char *file, const int line, const char * format, ...) noexcept {
- fprintf(stderr, "[%'9" PRIu64 "] %s @ %s:%d: ", DBTEnv::getElapsedMillisecond(), prefix, file, line);
+void direct_bt::ERR_PRINT_impl(const char *prefix, const char *func, const char *file, const int line, const char * format, ...) noexcept {
+ fprintf(stderr, "[%'9" PRIu64 "] %s @ %s:%d %s: ", DBTEnv::getElapsedMillisecond(), prefix, file, line, func);
va_list args;
va_start (args, format);
vfprintf(stderr, format, args);
@@ -81,15 +81,15 @@ void direct_bt::ERR_PRINT_impl(const char *prefix, const char *file, const int l
fflush(stderr);
}
-void direct_bt::WARN_PRINTv(const char *file, const int line, const char * format, va_list args) noexcept {
- fprintf(stderr, "[%'9" PRIu64 "] Warning @ %s:%d: ", DBTEnv::getElapsedMillisecond(), file, line);
+void direct_bt::WARN_PRINTv(const char *func, const char *file, const int line, const char * format, va_list args) noexcept {
+ fprintf(stderr, "[%'9" PRIu64 "] Warning @ %s:%d %s: ", DBTEnv::getElapsedMillisecond(), file, line, func);
vfprintf(stderr, format, args);
fprintf(stderr, "\n");
fflush(stderr);
}
-void direct_bt::WARN_PRINT_impl(const char *file, const int line, const char * format, ...) noexcept {
- fprintf(stderr, "[%'9" PRIu64 "] Warning @ %s:%d: ", DBTEnv::getElapsedMillisecond(), file, line);
+void direct_bt::WARN_PRINT_impl(const char *func, const char *file, const int line, const char * format, ...) noexcept {
+ fprintf(stderr, "[%'9" PRIu64 "] Warning @ %s:%d %s: ", DBTEnv::getElapsedMillisecond(), file, line, func);
va_list args;
va_start (args, format);
vfprintf(stderr, format, args);