ulog_reset is undefined; inline the code.