log_trace: cleanup

compile tested on GCC