* Log writes to the log buffer, and guarantees not to sleep (so can be * called by interrupt routines). If there is no process reading the * log yet, it writes to the console also. */
| 315 | * log yet, it writes to the console also. |
| 316 | */ |
| 317 | void |
| 318 | log(int level, const char *fmt, ...) |
| 319 | { |
| 320 | va_list ap; |
| 321 | |
| 322 | va_start(ap, fmt); |
| 323 | vlog(level, fmt, ap); |
| 324 | va_end(ap); |
| 325 | } |
| 326 | |
| 327 | void |
| 328 | vlog(int level, const char *fmt, va_list ap) |
no test coverage detected