This commit is contained in:
albert
2003-08-16 21:15:53 +00:00
parent 6ba229fa4c
commit 360e6533c9
4 changed files with 16 additions and 17 deletions

View File

@ -547,7 +547,7 @@ int open_psdb(const char *restrict override) {
/***************************************/
const char * read_wchan_file(unsigned pid){
static const char * read_wchan_file(unsigned pid){
static char buf[64];
const char *ret = buf;
ssize_t num;
@ -565,6 +565,8 @@ const char * read_wchan_file(unsigned pid){
// would skip over numbers if they existed -- but no
// 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;