| 13 | } |
| 14 | |
| 15 | void log_error(const char* fmt, ...) { |
| 16 | va_list ap; |
| 17 | va_start(ap, fmt); |
| 18 | acl::string buf; |
| 19 | buf.format("thread-%lu: ", acl::thread::self()); |
| 20 | buf.vformat_append(fmt, ap); |
| 21 | va_end(ap); |
| 22 | |
| 23 | __android_log_write(ANDROID_LOG_ERROR, "error", buf.c_str()); |
| 24 | } |
| 25 | |
| 26 | typedef void (*write_fn)(void*, const char*, va_list); |
| 27 |