MCPcopy
hub / github.com/google/gopacket / Error

Function Error

examples/reassemblydump/main.go:124–133  ·  view source on GitHub ↗

Too bad for perf that a... is evaluated

(t string, s string, a ...interface{})

Source from the content-addressed store, hash-verified

122
123// Too bad for perf that a... is evaluated
124func Error(t string, s string, a ...interface{}) {
125 errorsMapMutex.Lock()
126 errors++
127 nb, _ := errorsMap[t]
128 errorsMap[t] = nb + 1
129 errorsMapMutex.Unlock()
130 if outputLevel >= 0 {
131 fmt.Printf(s, a...)
132 }
133}
134func Info(s string, a ...interface{}) {
135 if outputLevel >= 1 {
136 fmt.Printf(s, a...)

Callers 3

runMethod · 0.85
AcceptMethod · 0.85
ReassembledSGMethod · 0.85

Calls 1

PrintfMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…