From 707b12abf8f04cb22cd0240eebacb2176e6bef5b Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Tue, 1 Nov 2022 13:17:43 -0700 Subject: [PATCH] netdev: add more info to key setting debug messages Specify that the ifindex is being printed and print the key ID as well. --- src/netdev.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/netdev.c b/src/netdev.c index 636c02de..fd4bf52c 100644 --- a/src/netdev.c +++ b/src/netdev.c @@ -1635,7 +1635,7 @@ static void netdev_set_gtk(struct handshake_state *hs, uint16_t key_index, nhs->gtk_installed = false; - l_debug("%d", netdev->index); + l_debug("ifindex=%d key_idx=%u", netdev->index, key_index); if (crypto_cipher_key_len(cipher) != gtk_len) { l_error("Unexpected key length: %d", gtk_len); @@ -1680,7 +1680,7 @@ static void netdev_set_igtk(struct handshake_state *hs, uint16_t key_index, nhs->igtk_installed = false; - l_debug("%d", netdev->index); + l_debug("ifindex=%d key_idx=%u", netdev->index, key_index); if (crypto_cipher_key_len(cipher) != igtk_len) { l_error("Unexpected key length: %d", igtk_len); @@ -2054,7 +2054,7 @@ static void netdev_set_tk(struct handshake_state *hs, uint8_t key_index, return; } - l_debug("%d", netdev->index); + l_debug("ifindex=%d key_idx=%u", netdev->index, key_index); err = -ENOENT; if (!netdev_copy_tk(tk_buf, tk, cipher, false))