| 2 | #include "log.h" |
| 3 | |
| 4 | void log_info(const char* fmt, ...) { |
| 5 | va_list ap; |
| 6 | va_start(ap, fmt); |
| 7 | acl::string buf; |
| 8 | buf.format("thread-%lu: ", acl::thread::self()); |
| 9 | buf.vformat_append(fmt, ap); |
| 10 | va_end(ap); |
| 11 | |
| 12 | __android_log_write(ANDROID_LOG_INFO, "info", buf.c_str()); |
| 13 | } |
| 14 | |
| 15 | void log_error(const char* fmt, ...) { |
| 16 | va_list ap; |
no test coverage detected
searching dependent graphs…