From 54803093749811fd48986e5189e4c2c289b9565f Mon Sep 17 00:00:00 2001 From: mtm Date: Mon, 9 Jun 2003 17:58:15 +0000 Subject: _thread_printf() is only used for debugging or in cases where something's screwed beyond all help, so it can just skip the pthreads wrapper for write(2) and call directly into it. --- lib/libthr/thread/thr_printf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libthr') diff --git a/lib/libthr/thread/thr_printf.c b/lib/libthr/thread/thr_printf.c index 3a120e8..db861a7 100644 --- a/lib/libthr/thread/thr_printf.c +++ b/lib/libthr/thread/thr_printf.c @@ -110,7 +110,7 @@ static void pchar(int fd, char c) { - write(fd, &c, 1); + __sys_write(fd, &c, 1); } /* @@ -120,6 +120,6 @@ static void pstr(int fd, const char *s) { - write(fd, s, strlen(s)); + __sys_write(fd, s, strlen(s)); } -- cgit v1.1