[PATCH openEuler-5.10 03/43] livepatch: Reduce duplicate codes and fix issue on patch text