X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/a48c8d873bc2a49f66ab398ebed51dc45764ca17..120a36f22b338e6205a703424cd517e289d5217f:/src/debug.c diff --git a/src/debug.c b/src/debug.c index 54920032..fe21531b 100644 --- a/src/debug.c +++ b/src/debug.c @@ -389,6 +389,14 @@ void _redisPanic(char *msg, char *file, int line) { #endif } +void bugReportStart(void) { + if (server.bug_report_start == 0) { + redisLog(REDIS_WARNING, + "\n\n=== REDIS BUG REPORT START: Cut & paste starting from here ==="); + server.bug_report_start = 1; + } +} + #ifdef HAVE_BACKTRACE static void *getMcontextEip(ucontext_t *uc) { #if defined(__FreeBSD__) @@ -420,14 +428,6 @@ static void *getMcontextEip(ucontext_t *uc) { #endif } -void bugReportStart(void) { - if (server.bug_report_start == 0) { - redisLog(REDIS_WARNING, - "\n\n=== REDIS BUG REPORT START: Cut & paste starting from here ==="); - server.bug_report_start = 1; - } -} - void logStackContent(void **sp) { int i; for (i = 15; i >= 0; i--) {