File:  [Apple Darwin 0.x] / driverkit / notes / log
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:37:50 2018 UTC (8 years, 3 months ago) by root
Branches: MAIN, Apple
CVS tags: HEAD, Darwin03, Darwin02
Darwin 0.2 Driver Kit

change kernel's log() to these two:

int log(int level, const char *format, ...)
{
	register s = splhigh();
	va_list ap;
	extern int log_open;

	va_start(ap, format);
	vlog(level, format, ap);
	va_end(ap);
	return 0;
}

int vlog(int level, const char *format, va_list ap)
{
	register s = splhigh();
	extern int log_open;

	logpri(level);
	prf(format, ap, TOLOG, (struct tty *)0);
	splx(s);
	if (!log_open)
		prf(format, ap, TOCONS, (struct tty *)0);
	logwakeup();
	return 0;
}

...and make kernel IOLog like log(), with implied level.

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.