Make format logging use enum.

Also add missing ARG_MMAP entry which -Wswitch-enum picked up on
now that -Wdefault-switch isn't hiding it.