From c1147c8df73eb61bc9d66e6628e0369e21f28670 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sat, 11 Jul 2020 17:09:04 +0200 Subject: all: fix comments format Fix capitalization, dots at the end and two spaces after a period. Update #1876 --- vm/vmimpl/console.go | 6 +++--- vm/vmimpl/freebsd.go | 6 +++--- vm/vmimpl/openbsd.go | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) (limited to 'vm/vmimpl') 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{ "", -- cgit mrf-deployment