summaryrefslogtreecommitdiffstats
path: root/src/utils.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2018-04-09 16:57:38 +0200
committerGravatar Nikias Bassen2018-04-09 16:57:38 +0200
commite567b881bdce3e3e7b46d2a9d0d344b876257606 (patch)
treeb2c19da5b32374d72f5ddeaab52d4f8ad6baff5e /src/utils.c
parentb888970f68fb16961a7cc3a526065fab7a5d96ca (diff)
downloadusbmuxd-e567b881bdce3e3e7b46d2a9d0d344b876257606.tar.gz
usbmuxd-e567b881bdce3e3e7b46d2a9d0d344b876257606.tar.bz2
log: Fix timestamps being printed incorrectly when running in foreground
Due to usage of wrong function (get_tick_count) the timestamps have been printed incorrectly based on clock_gettime. This commit fixes it by using gettimeofday correctly and also makes sure that this is thread-safe by using localtime_r if available. Furthermore, this commit will also have the effect that when logging through syslog we don't determine the current time anymore because the timestamp is not even used.
Diffstat (limited to 'src/utils.c')
0 files changed, 0 insertions, 0 deletions