Skip to content

Commit 79c4c82

Browse files
xudongzhengnashif
authored andcommitted
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 <[email protected]>
1 parent e31ae60 commit 79c4c82

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/zephyr/logging/log_output.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ void log_output_timestamp_freq_set(uint32_t freq);
221221
*
222222
* @return Timestamp value in us.
223223
*/
224-
uint64_t log_output_timestamp_to_us(uint32_t timestamp);
224+
uint64_t log_output_timestamp_to_us(log_timestamp_t timestamp);
225225

226226
/**
227227
* @}

subsys/logging/log_output.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ void log_output_timestamp_freq_set(uint32_t frequency)
596596
freq = frequency;
597597
}
598598

599-
uint64_t log_output_timestamp_to_us(uint32_t timestamp)
599+
uint64_t log_output_timestamp_to_us(log_timestamp_t timestamp)
600600
{
601601
timestamp /= timestamp_div;
602602

0 commit comments

Comments
 (0)