|
|
1.1 ! root 1: change kernel's log() to these two: ! 2: ! 3: int log(int level, const char *format, ...) ! 4: { ! 5: register s = splhigh(); ! 6: va_list ap; ! 7: extern int log_open; ! 8: ! 9: va_start(ap, format); ! 10: vlog(level, format, ap); ! 11: va_end(ap); ! 12: return 0; ! 13: } ! 14: ! 15: int vlog(int level, const char *format, va_list ap) ! 16: { ! 17: register s = splhigh(); ! 18: extern int log_open; ! 19: ! 20: logpri(level); ! 21: prf(format, ap, TOLOG, (struct tty *)0); ! 22: splx(s); ! 23: if (!log_open) ! 24: prf(format, ap, TOCONS, (struct tty *)0); ! 25: logwakeup(); ! 26: return 0; ! 27: } ! 28: ! 29: ...and make kernel IOLog like log(), with implied level.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.