1
0
mirror of https://github.com/taigrr/gopher-os synced 2025-01-18 04:43:13 -08:00

Support pluggable output sinks for Printf with a ring-buffer fallback

The implementation of Printf has been moved from the early package to
the kfmt package. The dependency to ActiveTerminal has been removed and
the code now uses an io.Writer for its output. As Go interfaces cannot
be used before bootstrapping the Go runtime, the code uses a ring-buffer
fallback for storing any kernel output emitted before that point.
This commit is contained in:
Achilleas Anagnostopoulos
2017-07-01 07:02:16 +01:00
parent f691d75b29
commit 545a18fccc
3 changed files with 168 additions and 80 deletions

View File

@@ -170,6 +170,7 @@ lint: lint-check-deps
--deadline 300s \
--exclude 'return value not checked' \
--exclude 'possible misuse of unsafe.Pointer' \
--exclude 'x \^ 0 always equals x' \
./...
lint-check-deps: