crash-utility / crash

Linux kernel crash utility
https://crash-utility.github.io
788 stars 266 forks source link

deduplicate kernel_version open-coded parser #151

Closed aquini closed 10 months ago

aquini commented 11 months ago

The code that parses kernel version from OSRELEASE/UTSRELEASE strings and populates the global kernel table is duplicated across the codebase for no good reason. This commit consolidates all the duplicated parsing code into a single method to remove the unnecessary duplicated code.

k-hagio commented 10 months ago

Closing with f774fe0f59b45596e5165eb008845b3534f650d0, thanks.