diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-05-04 14:24:51 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-05-04 14:24:51 +0200 |
| commit | 08141db61a7a947b701d06aa5c90cd825c55e350 (patch) | |
| tree | 3a47d7c702f152f5f1e5198731227067607b98d6 /prog/resources.go | |
| parent | 0f503c18d939e6dde67eb2b2d44202db44fe9de6 (diff) | |
gometalinter: enable line length checking
120 columns looks like a reasonable limit
and requires few changes to existing code.
Update #538
Diffstat (limited to 'prog/resources.go')
| -rw-r--r-- | prog/resources.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/prog/resources.go b/prog/resources.go index 81a02e9ca..68fbe1599 100644 --- a/prog/resources.go +++ b/prog/resources.go @@ -127,7 +127,8 @@ func (target *Target) TransitivelyEnabledCalls(enabled map[*Syscall]bool) (map[* // but for now we just special-case timespec/timeval. if cantCreate == "" && !haveGettime && target.SyscallMap["clock_gettime"] != nil { ForeachType(c, func(typ Type) { - if a, ok := typ.(*StructType); ok && a.Dir() != DirOut && (a.Name() == "timespec" || a.Name() == "timeval") { + if a, ok := typ.(*StructType); ok && a.Dir() != DirOut && + (a.Name() == "timespec" || a.Name() == "timeval") { cantCreate = a.Name() resourceCtors = []*Syscall{target.SyscallMap["clock_gettime"]} } @@ -139,7 +140,9 @@ func (target *Target) TransitivelyEnabledCalls(enabled map[*Syscall]bool) (map[* for _, ctor := range resourceCtors { ctorNames = append(ctorNames, ctor.Name) } - disabled[c] = fmt.Sprintf("no syscalls can create resource %v, enable some syscalls that can create it %v", cantCreate, ctorNames) + disabled[c] = fmt.Sprintf("no syscalls can create resource %v,"+ + " enable some syscalls that can create it %v", + cantCreate, ctorNames) } } if n == len(supported) { |
