mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
Move util_bug into libtor-log
This commit is contained in:
parent
6fc2d53227
commit
bcf3e546d1
@ -15,7 +15,7 @@
|
||||
#include "orconfig.h"
|
||||
#include "lib/cc/torint.h"
|
||||
#include "common/compat.h"
|
||||
#include "common/util_bug.h"
|
||||
#include "lib/log/util_bug.h"
|
||||
|
||||
#ifdef ADDRESS_PRIVATE
|
||||
|
||||
|
@ -40,7 +40,6 @@ LIBOR_A_SRC = \
|
||||
src/common/confline.c \
|
||||
src/common/memarea.c \
|
||||
src/common/util.c \
|
||||
src/common/util_bug.c \
|
||||
src/common/util_format.c \
|
||||
src/common/util_process.c \
|
||||
src/common/sandbox.c \
|
||||
@ -94,7 +93,6 @@ COMMONHEADERS = \
|
||||
src/common/timers.h \
|
||||
src/common/token_bucket.h \
|
||||
src/common/util.h \
|
||||
src/common/util_bug.h \
|
||||
src/common/util_format.h \
|
||||
src/common/util_process.h \
|
||||
src/common/workqueue.h
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
#include "common/token_bucket.h"
|
||||
#include "common/compat.h"
|
||||
#include "common/util_bug.h"
|
||||
#include "lib/log/util_bug.h"
|
||||
|
||||
/**
|
||||
* Set the <b>rate</b> and <b>burst</b> value in a token_bucket_cfg.
|
||||
|
@ -32,7 +32,7 @@
|
||||
#include "lib/intmath/muldiv.h"
|
||||
#include "lib/intmath/cmp.h"
|
||||
#include "lib/log/ratelim.h"
|
||||
#include "common/util_bug.h"
|
||||
#include "lib/log/util_bug.h"
|
||||
|
||||
#ifndef O_BINARY
|
||||
#define O_BINARY 0
|
||||
|
@ -13,4 +13,4 @@ ht.h
|
||||
siphash.h
|
||||
|
||||
# XXX I'd like to remove this.
|
||||
common/util_bug.h
|
||||
lib/log/util_bug.h
|
||||
|
@ -17,7 +17,7 @@
|
||||
#include "lib/string/util_string.h"
|
||||
#include "lib/malloc/util_malloc.h"
|
||||
|
||||
#include "common/util_bug.h"
|
||||
#include "lib/log/util_bug.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
@ -14,7 +14,7 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "lib/container/order.h"
|
||||
#include "common/util_bug.h"
|
||||
#include "lib/log/util_bug.h"
|
||||
|
||||
/** Declare a function called <b>funcname</b> that acts as a find_nth_FOO
|
||||
* function for an array of type <b>elt_t</b>*.
|
||||
|
@ -21,7 +21,7 @@
|
||||
#include "lib/string/util_string.h"
|
||||
#include "lib/string/printf.h"
|
||||
|
||||
#include "common/util_bug.h"
|
||||
#include "lib/log/util_bug.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
@ -7,7 +7,8 @@ endif
|
||||
|
||||
src_lib_libtor_log_a_SOURCES = \
|
||||
src/lib/log/ratelim.c \
|
||||
src/lib/log/torlog.c
|
||||
src/lib/log/torlog.c \
|
||||
src/lib/log/util_bug.c
|
||||
|
||||
src_lib_libtor_log_testing_a_SOURCES = \
|
||||
$(src_lib_libtor_log_a_SOURCES)
|
||||
@ -16,4 +17,5 @@ src_lib_libtor_log_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
|
||||
|
||||
noinst_HEADERS += \
|
||||
src/lib/log/ratelim.h \
|
||||
src/lib/log/torlog.h
|
||||
src/lib/log/torlog.h \
|
||||
src/lib/log/util_bug.h
|
||||
|
@ -8,7 +8,7 @@
|
||||
**/
|
||||
|
||||
#include "orconfig.h"
|
||||
#include "common/util_bug.h"
|
||||
#include "lib/log/util_bug.h"
|
||||
#include "lib/log/torlog.h"
|
||||
#include "lib/err/backtrace.h"
|
||||
#ifdef TOR_UNIT_TESTS
|
||||
@ -41,7 +41,7 @@ tor_end_capture_bugs_(void)
|
||||
return;
|
||||
SMARTLIST_FOREACH(bug_messages, char *, cp, tor_free(cp));
|
||||
smartlist_free(bug_messages);
|
||||
nn bug_messages = NULL;
|
||||
bug_messages = NULL;
|
||||
}
|
||||
const smartlist_t *
|
||||
tor_get_captured_bug_log_(void)
|
Loading…
Reference in New Issue
Block a user