logging: change log_output_timestamp_to_us() to take log_timestamp_t

If CONFIG_LOG_TIMESTAMP_64BIT is enabled, the timestamp will be 64-bit

Signed-off-by: Xudong Zheng <7pkvm5aw@slicealias.com>
This commit is contained in:
Xudong Zheng 2023-05-02 01:17:38 -04:00 committed by Anas Nashif
parent e31ae60058
commit 79c4c82baf
2 changed files with 2 additions and 2 deletions

View file

@ -221,7 +221,7 @@ void log_output_timestamp_freq_set(uint32_t freq);
*
* @return Timestamp value in us.
*/
uint64_t log_output_timestamp_to_us(uint32_t timestamp);
uint64_t log_output_timestamp_to_us(log_timestamp_t timestamp);
/**
* @}

View file

@ -596,7 +596,7 @@ void log_output_timestamp_freq_set(uint32_t frequency)
freq = frequency;
}
uint64_t log_output_timestamp_to_us(uint32_t timestamp)
uint64_t log_output_timestamp_to_us(log_timestamp_t timestamp)
{
timestamp /= timestamp_div;