diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-07-11 17:09:04 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-07-12 08:22:44 +0200 |
| commit | c1147c8df73eb61bc9d66e6628e0369e21f28670 (patch) | |
| tree | 1f5f75bf13a32941025c134fdd236fb137cf3181 /vm/vmimpl | |
| parent | 0faffd0438df859fb66236085ac3992735900d26 (diff) | |
all: fix comments format
Fix capitalization, dots at the end
and two spaces after a period.
Update #1876
Diffstat (limited to 'vm/vmimpl')
| -rw-r--r-- | vm/vmimpl/console.go | 6 | ||||
| -rw-r--r-- | vm/vmimpl/freebsd.go | 6 | ||||
| -rw-r--r-- | vm/vmimpl/openbsd.go | 6 |
3 files changed, 9 insertions, 9 deletions
diff --git a/vm/vmimpl/console.go b/vm/vmimpl/console.go index fbc05942f..74449cab4 100644 --- a/vm/vmimpl/console.go +++ b/vm/vmimpl/console.go @@ -31,11 +31,11 @@ func OpenConsole(con string) (rc io.ReadCloser, err error) { if errno != 0 { return nil, fmt.Errorf("failed to get console termios: %v", errno) } - // no parity bit, only need 1 stop bit, no hardware flowcontrol + // No parity bit, only need 1 stop bit, no hardware flowcontrol, term.Cflag &^= unixCBAUD | unix.CSIZE | unix.PARENB | unix.CSTOPB | unixCRTSCTS - // ignore modem controls + // Ignore modem controls. term.Cflag |= unix.B115200 | unix.CS8 | unix.CLOCAL | unix.CREAD - // setup for non-canonical mode + // Setup for non-canonical mode. term.Iflag &^= unix.IGNBRK | unix.BRKINT | unix.PARMRK | unix.ISTRIP | unix.INLCR | unix.IGNCR | unix.ICRNL | unix.IXON term.Lflag &^= unix.ECHO | unix.ECHONL | unix.ICANON | unix.ISIG | unix.IEXTEN diff --git a/vm/vmimpl/freebsd.go b/vm/vmimpl/freebsd.go index 2210f8c34..8a75e04c5 100644 --- a/vm/vmimpl/freebsd.go +++ b/vm/vmimpl/freebsd.go @@ -9,9 +9,9 @@ import ( ) // DiagnoseFreeBSD sends the debug commands to the given writer which -// is expected to be connected to a panicked FreeBSD kernel. If kernel -// just hanged, we've lost connection or detected some non-panic -// error, console still shows normal login prompt. +// is expected to be connected to a panicked FreeBSD kernel. If kernel +// just hanged, we've lost connection or detected some non-panic error, +// console still shows normal login prompt. func DiagnoseFreeBSD(w io.Writer) ([]byte, bool) { commands := []string{ "", diff --git a/vm/vmimpl/openbsd.go b/vm/vmimpl/openbsd.go index 8017ede03..850f3940a 100644 --- a/vm/vmimpl/openbsd.go +++ b/vm/vmimpl/openbsd.go @@ -9,9 +9,9 @@ import ( ) // DiagnoseOpenBSD sends the debug commands to the given writer which -// is expected to be connected to a paniced openbsd kernel. If kernel -// just hanged, we've lost connection or detected some non-panic -// error, console still shows normal login prompt. +// is expected to be connected to a paniced openbsd kernel. If kernel +// just hanged, we've lost connection or detected some non-panic error, +// console still shows normal login prompt. func DiagnoseOpenBSD(w io.Writer) ([]byte, bool) { commands := []string{ "", |
