Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We store iolog timestamps as 64-bit unsigned integers but when we print timestamps in the logs we type cast them to unsigned longs. This is fine on platforms with 64-bit longs but on platforms like Windows with 32-bit longs this truncates the timestamps. Truncation causes problems especially when options such as --log_unix_epoch are enabled because the number of milliseconds since 01-01-1970 does not fit in a 32-bit unsigned long. Fix this by getting rid of the type cast and using PRIu64 as the format specifier. Fixes: #1638 Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
- Loading branch information