Open Bug 280578 Opened 20 years ago Updated 2 years ago

Unix: ptthread.c uses the %X format to print pthread_t (thred->id)

Categories

(NSPR :: NSPR, defect)

defect

Tracking

(Not tracked)

People

(Reporter: wtc, Unassigned)

Details

ptthread.c has several PR_LOG statements in which the
%X format specifier is used to print a pthread_t value
(thred->id).

pthread_t is an implementation-dependent type.  It
may be defined as an integer type, a pointer, or even
a struct.  So it is not portable to use %X to print it.

I don't have a good solution right now.
QA Contact: wtchang → nspr
Severity: normal → S3

The bug assignee is inactive on Bugzilla, so the assignee is being reset.

Assignee: wtc → nobody
You need to log in before you can comment on or make changes to this bug.