]> www.infradead.org Git - users/jedix/linux-maple.git/commit
netdevsim: macsec: pad u64 to correct length in logs
authorAles Nezbeda <anezbeda@redhat.com>
Thu, 17 Oct 2024 13:19:33 +0000 (15:19 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Wed, 23 Oct 2024 07:51:06 +0000 (09:51 +0200)
commit1a629afd590b9d7888105250c31133d9dacceaee
treeeaefff153e1b819b6376c9b72e369006c3205d0d
parent73840ca5ef361f143b89edd5368a1aa8c2979241
netdevsim: macsec: pad u64 to correct length in logs

Commit 02b34d03a24b ("netdevsim: add dummy macsec offload") pads u64
number to 8 characters using "%08llx" format specifier.

Changing format specifier to "%016llx" ensures that no matter the value
the representation of number in log is always the same length.

Before this patch, entry in log for value '1' would say:
    removing SecY with SCI 00000001 at index 2
After this patch is applied, entry in log will say:
    removing SecY with SCI 0000000000000001 at index 2

Signed-off-by: Ales Nezbeda <anezbeda@redhat.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Sabrina Dubroca <sd@queasysnail.net>
Link: https://patch.msgid.link/20241017131933.136971-1-anezbeda@redhat.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/netdevsim/macsec.c