Update log.c

Change fprintf to fputs.