aboutsummaryrefslogtreecommitdiffstats
path: root/src/debug.cpp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-10-17 01:41:43 +0200
committerSven Gothel <[email protected]>2020-10-17 01:41:43 +0200
commit9ac6a2a05fdb87d7a92227993d2673c2160aef08 (patch)
tree92f2510e34b827c9bee9a5435490a89e3af1a8f8 /src/debug.cpp
parentb030fa9f38792b173fadf2d24595ab43cbb9d258 (diff)
Compile clean on g++ 8+10 on 64bit and 32bit with full Warnings (=Error)
Full Warnings = Error: -Wall -Wextra -Wformat=2 -Wformat-overflow=2 -Wformat-nonliteral -Wformat-security -Wformat-signedness -Wformat-y2k -Wnull-dereference -Winit-self -Werror
Diffstat (limited to 'src/debug.cpp')
-rw-r--r--src/debug.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/debug.cpp b/src/debug.cpp
index 66341ad..6797a9c 100644
--- a/src/debug.cpp
+++ b/src/debug.cpp
@@ -67,9 +67,9 @@ std::string jau::get_backtrace(int skip_frames) noexcept {
out.append(real_name);
free( real_name );
}
- snprintf(cstr, sizeof(cstr), " + 0x%lx @ ip 0x%lx, sp 0x%lx", (uint64_t)offset, (uint64_t)ip, (uint64_t)sp);
+ snprintf(cstr, sizeof(cstr), " + 0x%lx @ ip %p, sp %p", (unsigned long)offset, (void*)ip, (void*)sp);
} else {
- snprintf(cstr, sizeof(cstr), "ip 0x%lx, sp 0x%lx, get_proc_name error 0x%x", (uint64_t)ip, (uint64_t)sp, res);
+ snprintf(cstr, sizeof(cstr), "ip %p, sp %p, get_proc_name error 0x%x", (void*)ip, (void*)sp, (unsigned)res);
}
out.append(cstr);
out.append("\n");