From fc7f60a6bcefd24dc3555e5170250057bd38b17c Mon Sep 17 00:00:00 2001 From: Jan Rybar Date: Tue, 22 Nov 2016 16:58:14 +0100 Subject: [PATCH] ps: removed stripping of prefixes off wchan data resolves Red Hat Bugzilla #1322111 --- proc/wchan.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/proc/wchan.c b/proc/wchan.c index b4e40fe1..bbd32b8b 100644 --- a/proc/wchan.c +++ b/proc/wchan.c @@ -46,11 +46,7 @@ const char * lookup_wchan (int pid) { // lame ppc64 has a '.' in front of every name if (*ret=='.') ret++; - switch (*ret){ - case 's': if(!strncmp(ret, "sys_", 4)) ret += 4; break; - case 'd': if(!strncmp(ret, "do_", 3)) ret += 3; break; - case '_': while(*ret=='_') ret++; break; - default : break; - } + while(*ret=='_') ret++; + return ret; }