log.c: Avoid using the same name for a variable and enum.