add-vmcore: cleanup the coding style according to Andrew's comments