Don't print anything from epicsThreadShow() when tid=0.

Also don't pass level > 1 to vxWorks taskShow() routine.
This commit is contained in:
Andrew Johnson
2010-05-03 17:28:04 -05:00
parent 7f534cbc74
commit 12dc840eda

View File

@@ -313,10 +313,13 @@ void epicsThreadShowAll(unsigned int level)
taskShow(0,2);
}
void epicsThreadShow(epicsThreadId id,unsigned int level)
void epicsThreadShow(epicsThreadId id, unsigned int level)
{
int tid = (int)id;
taskShow(tid,level);
if (level > 1) level = 1;
if (tid)
taskShow(tid, level);
}
/* The following algorithm was thought of by Andrew Johnson APS/ASD .