Update log.c

fast code!