static void test() { __trace() << "trace message"; __debug() << "debug message"; __info() << "info message"; __notice() << "notice message"; __warn() << "warn message"; __error() << "error message"; __fatal() << "fatal message"; }
void warn_slowpath_fmt_taint(const char *file, int line, unsigned taint, const char *fmt, ...) { struct warn_args args; args.fmt = fmt; va_start(args.args, fmt); __warn(file, line, __builtin_return_address(0), taint, NULL, &args); va_end(args.args); }
int main(int arg_count, char** arg_values) { corefungi::init(arg_count, arg_values); __trace() << "trace message"; __debug() << "debug message"; __info() << "info message"; __notice() << "notice message"; __warn() << "warn message"; __error() << "error message"; __fatal() << "fatal message"; std::vector< std::string > v = { "this", "is", "a", "vector", "of", "strings" }; __info() << v << v; auto const& t = std::make_tuple("this is ", 1, std::vector< char > {'t','u','p','l','e'}); __warn() << t << " " << t; test_module::test(); return 0; }
void warn_slowpath_null(const char *file, int line) { pr_warn(CUT_HERE); __warn(file, line, __builtin_return_address(0), TAINT_WARN, NULL, NULL); }