mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
qcacmn: Create qdf_log_timestamp_to_secs helper function
Create a timestamp conversion helper that returns whole seconds and remaining micro seconds, for easier consumption by logging methods. Change-Id: I5bc40075566485f3dc9f7e5fd81a13ec462c5da0 CRs-Fixed: 2031564
This commit is contained in:
parent
674c4a0650
commit
6cb0fa1c4f
3 changed files with 37 additions and 11 deletions
|
|
@ -114,11 +114,12 @@ void htc_print_credit_history(HTC_HANDLE htc, uint32_t count,
|
|||
"Time (seconds) Type Credits Queue Depth");
|
||||
while (count) {
|
||||
HTC_CREDIT_HISTORY *hist = &htc_credit_history_buffer[idx];
|
||||
long long us = qdf_log_timestamp_to_usecs(hist->time);
|
||||
uint64_t secs, usecs;
|
||||
|
||||
qdf_log_timestamp_to_secs(hist->time, &secs, &usecs);
|
||||
print(print_priv, "% 8lld.%06lld %-25s %-7.d %d",
|
||||
us / 1000000,
|
||||
us % 1000000,
|
||||
secs,
|
||||
usecs,
|
||||
htc_credit_exchange_type_str(hist->type),
|
||||
hist->tx_credit,
|
||||
hist->htc_tx_queue_depth);
|
||||
|
|
|
|||
Loading…
Reference in a new issue