From 6a72fbae62a30d52915d055e06c1987d0041fbaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Thu, 1 Apr 2010 07:21:36 +0000 Subject: use error instead of post svn path=/trunk/externals/iem/iemnet/; revision=13331 --- udpclient.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/udpclient.c b/udpclient.c index 9a14c08..a1e1bea 100644 --- a/udpclient.c +++ b/udpclient.c @@ -150,7 +150,7 @@ static void udpclient_disconnect(t_udpclient *x) x->x_connectstate = 0; outlet_float(x->x_connectout, 0); } - else pd_error(x, "%s: not connected", objName); + else pd_error(x, "[%s] not connected", objName); } @@ -164,7 +164,7 @@ static void udpclient_connect(t_udpclient *x, t_symbol *hostname, t_floatarg fpo x->x_connectstate = 0; /* start child thread */ if(pthread_create(&x->x_threadid, &x->x_threadattr, udpclient_child_connect, x) < 0) - post("%s: could not create new thread", objName); + error("%s: could not create new thread", objName); } /* sending/receiving */ @@ -221,9 +221,9 @@ static void *udpclient_new(void) /* prepare child thread */ if(pthread_attr_init(&x->x_threadattr) < 0) - post("%s: warning: could not prepare child thread", objName); + verbose(1, "[%s] warning: could not prepare child thread", objName); if(pthread_attr_setdetachstate(&x->x_threadattr, PTHREAD_CREATE_DETACHED) < 0) - post("%s: warning: could not prepare child thread", objName); + verbose(1, "[%s] warning: could not prepare child thread", objName); return (x); -- cgit v1.2.1