X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=audiod.c;h=119adbc0be2ddbf24a7d06de4b77a5a3d88bd230;hb=55adba3f7fc5619bd433c13d07ecb62e7b4d46a8;hp=838f375fe6df2c2d96c4bfa2aa41d28e64c29f72;hpb=a79e210f33334b273d11c92a430dd477284ee95a;p=paraslash.git diff --git a/audiod.c b/audiod.c index 838f375f..119adbc0 100644 --- a/audiod.c +++ b/audiod.c @@ -749,8 +749,8 @@ static void compute_time_diff(const struct timeval *status_time) if (count > 5) { int s = tv_diff(&diff, &stat_task->sa_time_diff, &tmp); if (tv_diff(&max_deviation, &tmp, NULL) < 0) - PARA_WARNING_LOG("time diff jump: %lums\n", - s * tv2ms(&tmp)); + PARA_WARNING_LOG("time diff jump: %c%lums\n", + s < 0? '-' : '+', tv2ms(&tmp)); } count++; sa_time_diff_sign = tv_convex_combination( @@ -1068,7 +1068,7 @@ static int signal_post_select(struct sched *s, void *context) case SIGINT: case SIGTERM: case SIGHUP: - PARA_NOTICE_LOG("received signal %d\n", signum); + PARA_WARNING_LOG("terminating on signal %d\n", signum); task_notify_all(s, E_AUDIOD_SIGNAL); return -E_AUDIOD_SIGNAL; } @@ -1094,7 +1094,7 @@ static int command_post_select(struct sched *s, void *context) return ret; ret = handle_connect(ct->fd, &s->rfds); if (ret < 0) { - PARA_ERROR_LOG("%s\n", para_strerror(-ret)); + PARA_NOTICE_LOG("%s\n", para_strerror(-ret)); if (ret == -E_AUDIOD_TERM) { task_notify_all(s, -ret); return ret;