X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftdb2%2Ftest%2Flogging.h;h=0fd59ba6bb921ed0a4e70fddda2c00aa69d24de3;hb=3e3ee8b0c1e77340ab9e8678c2d23646d8cdb627;hp=c7a5f112a26d1b0bad99ea706e8122bf7fd94dc2;hpb=06e0037d97f5e1d83667ec40627cef862f3b7b85;p=ccan diff --git a/ccan/tdb2/test/logging.h b/ccan/tdb2/test/logging.h index c7a5f112..0fd59ba6 100644 --- a/ccan/tdb2/test/logging.h +++ b/ccan/tdb2/test/logging.h @@ -1,10 +1,16 @@ #ifndef TDB2_TEST_LOGGING_H #define TDB2_TEST_LOGGING_H #include -unsigned tap_log_messages; +#include +#include -void tap_log_fn(struct tdb_context *tdb, - enum tdb_debug_level level, void *priv, - const char *fmt, ...); +extern bool suppress_logging; +extern const char *log_prefix; +extern unsigned tap_log_messages; +extern union tdb_attribute tap_log_attr; +extern char *log_last; +void tap_log_fn(struct tdb_context *tdb, + enum tdb_log_level level, + const char *message, void *priv); #endif /* TDB2_TEST_LOGGING_H */