Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
/* Format time in the TLS variable. */
ret = snprintf(URCU_TLS(error_log_time).str, sizeof(URCU_TLS(error_log_time).str),
- "%02d:%02d:%02d.%06ld",
+ "%02d:%02d:%02d.%09ld",
tm.tm_hour, tm.tm_min, tm.tm_sec, tp.tv_nsec);
if (ret < 0) {
goto error;
* every time a log is fired.
*/
struct log_time {
- /* Format: 00:00:00.000000 plus NULL byte. */
- char str[16];
+ /* Format: 00:00:00.000000000 plus NULL byte. */
+ char str[19];
};
extern DECLARE_URCU_TLS(struct log_time, error_log_time);