aboutsummaryrefslogtreecommitdiffstats
path: root/device/send.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-05-07 12:21:21 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2021-05-07 12:21:21 +0200
commit7121927b8743a9177fda6ddbdfcf9ccd97989417 (patch)
tree1d8f1eff75d4dd3f8caa54f6c270a9918cc4e600 /device/send.go
parentdevice: remove unusual ... in messages (diff)
downloadwireguard-go-7121927b8743a9177fda6ddbdfcf9ccd97989417.tar.xz
wireguard-go-7121927b8743a9177fda6ddbdfcf9ccd97989417.zip
device: add ID to repeated routines
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'device/send.go')
-rw-r--r--device/send.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/device/send.go b/device/send.go
index a437cf1..e07df1b 100644
--- a/device/send.go
+++ b/device/send.go
@@ -362,12 +362,12 @@ func calculatePaddingSize(packetSize, mtu int) int {
*
* Obs. One instance per core
*/
-func (device *Device) RoutineEncryption() {
+func (device *Device) RoutineEncryption(id int) {
var paddingZeros [PaddingMultiple]byte
var nonce [chacha20poly1305.NonceSize]byte
- defer device.log.Verbosef("Routine: encryption worker - stopped")
- device.log.Verbosef("Routine: encryption worker - started")
+ defer device.log.Verbosef("Routine: encryption worker %d - stopped", id)
+ device.log.Verbosef("Routine: encryption worker %d - started", id)
for elem := range device.queue.encryption.c {
// populate header fields