Make kernel thread display for COMM/EXE columns less visible and more consistent

This commit is contained in:
Benny Baumann 2020-11-20 19:57:12 +01:00 committed by BenBE
parent 45cb99d870
commit 27b36dab1a
1 changed files with 4 additions and 4 deletions

View File

@ -668,8 +668,8 @@ static void LinuxProcess_writeField(const Process* this, RichString* str, Proces
/* 15 being (TASK_COMM_LEN - 1) */
xSnprintf(buffer, n, "%-15.15s ", lp->procComm);
} else {
attr = CRT_colors[FAILED_READ];
xSnprintf(buffer, n, "%-15.15s ", Process_isKernelThread(lp) ? kthreadID : "?");
attr = CRT_colors[PROCESS_SHADOW];
xSnprintf(buffer, n, "%-15.15s ", Process_isKernelThread(lp) ? kthreadID : "no perm");
}
break;
}
@ -678,8 +678,8 @@ static void LinuxProcess_writeField(const Process* this, RichString* str, Proces
attr = CRT_colors[Process_isUserlandThread(this) ? PROCESS_THREAD_BASENAME : PROCESS_BASENAME];
xSnprintf(buffer, n, "%-15.15s ", lp->procExe + lp->procExeBasenameOffset);
} else {
attr = CRT_colors[FAILED_READ];
xSnprintf(buffer, n, "%-15.15s ", Process_isKernelThread(lp) ? kthreadID : "?");
attr = CRT_colors[PROCESS_SHADOW];
xSnprintf(buffer, n, "%-15.15s ", Process_isKernelThread(lp) ? kthreadID : "no perm");
}
break;
}