| 55 | } |
| 56 | |
| 57 | void log_fatal(const char* fmt, ...) |
| 58 | { |
| 59 | const char* ver = acl_version(); |
| 60 | char tag[256]; |
| 61 | snprintf(tag, sizeof(tag), "acl-%s", ver); |
| 62 | acl::string buf; |
| 63 | |
| 64 | va_list ap; |
| 65 | va_start(ap, fmt); |
| 66 | buf.vformat(fmt, ap); |
| 67 | va_end(ap); |
| 68 | |
| 69 | OH_LOG_Print(LOG_APP, LOG_FATAL, LOG_DOMAIN, tag, "%{public}s", buf.c_str()); |
| 70 | } |
| 71 | |
| 72 | void log_debug(const char* fmt, ...) |
| 73 | { |
nothing calls this directly
no test coverage detected
searching dependent graphs…