(cpuPrefix string, linkMonitor getters.LinkGetter)
| 423 | } |
| 424 | |
| 425 | func (n *DebugMsg) getJSON(cpuPrefix string, linkMonitor getters.LinkGetter) string { |
| 426 | return fmt.Sprintf(`{"cpu":%q,"type":"debug","message":%q}`, |
| 427 | cpuPrefix, n.Message(linkMonitor)) |
| 428 | } |
| 429 | |
| 430 | const ( |
| 431 | // DebugCaptureLen is the amount of packet data in a packet capture message |