From: Marcel Holtmann Date: Mon, 16 Mar 2015 08:10:25 +0000 (-0700) Subject: Bluetooth: Use smp->local_pk + 32 instead of &smp->local_pk[32] X-Git-Tag: v4.1-rc1~128^2~204^2~31 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8e4e2ee5d80875177e03d57b807e0784f3d91e0e;p=karo-tx-linux.git Bluetooth: Use smp->local_pk + 32 instead of &smp->local_pk[32] Signed-off-by: Marcel Holtmann Signed-off-by: Johan Hedberg --- diff --git a/net/bluetooth/smp.c b/net/bluetooth/smp.c index 0fcd8c8f1a6b..f0c5c2827372 100644 --- a/net/bluetooth/smp.c +++ b/net/bluetooth/smp.c @@ -1859,7 +1859,7 @@ static u8 sc_send_public_key(struct smp_chan *smp) done: SMP_DBG("Local Public Key X: %32phN", smp->local_pk); - SMP_DBG("Local Public Key Y: %32phN", &smp->local_pk[32]); + SMP_DBG("Local Public Key Y: %32phN", smp->local_pk + 32); SMP_DBG("Local Private Key: %32phN", smp->local_sk); smp_send_cmd(smp->conn, SMP_CMD_PUBLIC_KEY, 64, smp->local_pk);