fix -Wformat warnings