Bluetooth: Use %llu for printing duration details of selftests
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 13 Jan 2015 07:09:48 +0000 (23:09 -0800)
committerJohan Hedberg <johan.hedberg@intel.com>
Wed, 14 Jan 2015 08:02:45 +0000 (10:02 +0200)
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 <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/selftest.c
net/bluetooth/smp.c

index 9c67315172cf2185457d355df5bb527f85b98d06..378f4064952cfd0fe954511e76d307a486118ca4 100644 (file)
@@ -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;
 }
index 96c7d51a275319be998d1fb46ce53a14ff6acb1e..379654e70e6ff8c4cc24082af15985c565d45ebb 100644 (file)
@@ -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;
 }