Fix DEBUG_LOG macro.
Fixed invalid timer type (long is too small).