Bluetooth: Use %llu for printing duration details of selftests
Subsystems (2)
Marcel Holtmann
maintainerPATCH 1/1 Bluetooth: Use %llu for printing duration details of selftests
The duration variable for the selftests is unsigned long long and with that use %llu instead of %lld when printing the results.
Signed-off-by Marcel Holtmann <[email protected]>
--- net/bluetooth/selftest.c | 2 +- net/bluetooth/smp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
net/bluetooth/selftest.c +1 -1
@@ -184,7 +184,7 @@ static int __init test_ecdh(void) delta =ktime_sub (rettime, calltime); duration = (unsigned long long )ktime_to_ns (delta) >>10 ; -BT_INFO ("ECDH test passed in %lld usecs" , duration); +BT_INFO ("ECDH test passed in %llu usecs" , duration);return 0 ; }
net/bluetooth/smp.c +1 -1
@@ -3387,7 +3387,7 @@ static int __init run_selftests(struct crypto_blkcipher *tfm_aes, delta =ktime_sub (rettime, calltime); duration = (unsigned long long )ktime_to_ns (delta) >>10 ; -BT_INFO ("SMP test passed in %lld usecs" , duration); +BT_INFO ("SMP test passed in %llu usecs" , duration);return 0 ; }
Signature · 1 line
2.1.0
Johan Hedberg
AppliedHi Marcel,
Quoted 8 lines · Marcel Holtmann
The duration variable for the selftests is unsigned long long and with that use %llu instead of %lld when printing the results.
Signed-off-by Marcel Holtmann <[email protected]>--- net/bluetooth/selftest.c | 2 +- net/bluetooth/smp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Applied to bluetooth-hext. Thanks.
Johan