Skip to content

Commit

Permalink
Bluetooth: Use %llu for printing duration details of selftests
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marcel Holtmann authored and Johan Hedberg committed Jan 14, 2015
1 parent 36f260c commit 5ced246
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion net/bluetooth/selftest.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion net/bluetooth/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5ced246

Please sign in to comment.