Skip to contentSkip to conversation

Bluetooth: Use %llu for printing duration details of selftests

PATCH Applied Marcel Holtmann 2 participants 2 messages Jan 13, 2015 – Jan 14, 2015

Subsystems (2)
lore
Share & tools
lore

Marcel Holtmann

author maintainer
#0 lore raw

PATCH 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.

---
 net/bluetooth/selftest.c | 2 +-
 net/bluetooth/smp.c      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
net/bluetooth/selftest.c +1 -1
index 9c67315172cf..378f4064952c 100644
@@ -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
index 96c7d51a2753..379654e70e6f 100644
@@ -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
#1 lore raw

Hi 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.

---
 net/bluetooth/selftest.c | 2 +-
 net/bluetooth/smp.c      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Applied to bluetooth-hext. Thanks.

Johan