Fix compilation when CONFIG_FLASH_LOGGING=0