aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2010-04-01 07:21:36 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2010-04-01 07:21:36 +0000
commit6a72fbae62a30d52915d055e06c1987d0041fbaa (patch)
tree893611d4b240735c2c292774e5159665d9b24c99
parent6129f96ce81d32b7884b3ada7c895a86c280f95a (diff)
use error instead of post
svn path=/trunk/externals/iem/iemnet/; revision=13331
-rw-r--r--udpclient.c8
1 files 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);