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:
parent
e31ae60058
commit
79c4c82baf
|
@ -221,7 +221,7 @@ void log_output_timestamp_freq_set(uint32_t freq);
|
||||||
*
|
*
|
||||||
* @return Timestamp value in us.
|
* @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);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @}
|
* @}
|
||||||
|
|
|
@ -596,7 +596,7 @@ void log_output_timestamp_freq_set(uint32_t frequency)
|
||||||
freq = 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;
|
timestamp /= timestamp_div;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue