summaryrefslogtreecommitdiffhomepage
path: root/device/send.go
diff options
context:
space:
mode:
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