From dadb72341a65b1f03691b46a099c0fc9b99d474e Mon Sep 17 00:00:00 2001 From: Ayush Ranjan Date: Wed, 22 Jun 2022 10:17:32 -0700 Subject: [PATCH] Fix remaining comments to adhere to gofmt. PiperOrigin-RevId: 456544446 --- pkg/sentry/fsimpl/proc/task_files.go | 5 +++-- pkg/tcpip/stack/stack.go | 6 +++--- tools/tracereplay/save.go | 3 +-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pkg/sentry/fsimpl/proc/task_files.go b/pkg/sentry/fsimpl/proc/task_files.go index ce8e0581f..ca5f4eeb9 100644 --- a/pkg/sentry/fsimpl/proc/task_files.go +++ b/pkg/sentry/fsimpl/proc/task_files.go @@ -226,8 +226,9 @@ func GetMetadata(ctx context.Context, mm *mm.MemoryManager, buf *bytes.Buffer, t } // metadataData implements vfs.DynamicBytesSource for proc metadata fields like: -// - /proc/[pid]/cmdline -// - /proc/[pid]/environ +// +// - /proc/[pid]/cmdline +// - /proc/[pid]/environ // // +stateify savable type metadataData struct { diff --git a/pkg/tcpip/stack/stack.go b/pkg/tcpip/stack/stack.go index 91cef1f23..8afd11958 100644 --- a/pkg/tcpip/stack/stack.go +++ b/pkg/tcpip/stack/stack.go @@ -622,9 +622,9 @@ func (s *Stack) MulticastRouteLastUsedTime(protocol tcpip.NetworkProtocolNumber, // Returns true if forwarding was already enabled on the protocol. // Additionally, returns an error if: // -// - The protocol is not found. -// - The protocol doesn't support multicast forwarding. -// - The multicast forwarding event dispatcher is nil. +// - The protocol is not found. +// - The protocol doesn't support multicast forwarding. +// - The multicast forwarding event dispatcher is nil. // // If successful, future multicast forwarding events will be sent to the // provided event dispatcher. diff --git a/tools/tracereplay/save.go b/tools/tracereplay/save.go index b12a00a62..808eee0c3 100644 --- a/tools/tracereplay/save.go +++ b/tools/tracereplay/save.go @@ -58,8 +58,7 @@ func (s *Save) Start() error { // of messages. Both JSON and messages are prefixed by an uint64 with their // size. // -// Ex: -// signature Config JSON [message]* +// Ex: signature Config JSON [message]* func (s *Save) NewClient() (server.MessageHandler, error) { seq := s.clientCount.Add(1) filename := filepath.Join(s.dir, fmt.Sprintf("%s%04d", s.prefix, seq))