Make empth_name() and empth_set_name() take a thread argument

This commit is contained in:
Markus Armbruster 2008-09-11 19:25:34 -04:00
parent 7581b50eb6
commit d46b0b727d
6 changed files with 20 additions and 26 deletions

View file

@ -83,7 +83,8 @@ journal_entry(char *fmt, ...)
if (journal) {
time(&now);
fprintf(journal, "%.24s %10.10s:", ctime(&now), empth_name());
fprintf(journal, "%.24s %10.10s:",
ctime(&now), empth_name(empth_self()));
va_start(ap, fmt);
vsnprintf(buf, sizeof(buf) - 1, fmt, ap);