Fix for the "DEBUG KERNEL:" display in the initial system banner

and by the "sys" command when using a System.map file with a
Linux 3.0 and later debug kernel.  Without the patch, the kernel
version is not displayed in parentheses following the debug kernel
name.
(anderson@redhat.com)
This commit is contained in:
Dave Anderson 2014-05-28 15:05:13 -04:00
parent c9e72263ae
commit 3967ec84ff

View File

@ -4842,7 +4842,8 @@ debug_kernel_version(char *namelist)
argc = 0;
while (fgets(buf, BUFSIZE-1, pipe)) {
if (!strstr(buf, "Linux version 2."))
if (!strstr(buf, "Linux version 2.") &&
!strstr(buf, "Linux version 3."))
continue;
argc = parse_line(buf, arglist);