summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libpthread/linuxthreads.old/internals.h3
-rw-r--r--libpthread/linuxthreads.old/manager.c4
2 files changed, 4 insertions, 3 deletions
diff --git a/libpthread/linuxthreads.old/internals.h b/libpthread/linuxthreads.old/internals.h
index a4da09910..637fcea62 100644
--- a/libpthread/linuxthreads.old/internals.h
+++ b/libpthread/linuxthreads.old/internals.h
@@ -451,7 +451,8 @@ void __pthread_do_exit (void *retval, char *currentframe)
void __pthread_destroy_specifics(void);
void __pthread_perform_cleanup(char *currentframe);
int __pthread_initialize_manager(void);
-void __pthread_message(char * fmt, ...);
+void __pthread_message(char * fmt, ...)
+ __attribute__ ((__format__ (printf, 1, 2)));
int __pthread_manager(void *reqfd);
int __pthread_manager_event(void *reqfd);
void __pthread_manager_sighandler(int sig);
diff --git a/libpthread/linuxthreads.old/manager.c b/libpthread/linuxthreads.old/manager.c
index 88c92533e..52c1ea9b6 100644
--- a/libpthread/linuxthreads.old/manager.c
+++ b/libpthread/linuxthreads.old/manager.c
@@ -198,7 +198,7 @@ int attribute_noreturn __pthread_manager(void *arg)
request.req_thread->p_pid,
request.req_thread->p_report_events,
&request.req_thread->p_eventbuf.eventmask);
- PDEBUG("restarting %d\n", request.req_thread);
+ PDEBUG("restarting %p\n", request.req_thread);
restart(request.req_thread);
break;
case REQ_FREE:
@@ -206,7 +206,7 @@ int attribute_noreturn __pthread_manager(void *arg)
pthread_handle_free(request.req_args.free.thread_id);
break;
case REQ_PROCESS_EXIT:
- PDEBUG("got REQ_PROCESS_EXIT from %d, exit code = %d\n",
+ PDEBUG("got REQ_PROCESS_EXIT from %p, exit code = %d\n",
request.req_thread, request.req_args.exit.code);
pthread_handle_exit(request.req_thread,
request.req_args.exit.code);