X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=write.c;h=89831a2e448f40129e5ed6d51f8bebd863d9123b;hp=ec27f3d35ac078824e03f33c3ba38572177ef38d;hb=b9f9601828dd1a103ec9315bd430d39b458d2b80;hpb=1fe76952bf4244b93808da5e8fc45e92d8b37c58 diff --git a/write.c b/write.c index ec27f3d3..89831a2e 100644 --- a/write.c +++ b/write.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005-2006 Andre Noll + * Copyright (C) 2005-2007 Andre Noll * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -113,22 +113,7 @@ static void initial_delay_pre_select(struct sched *s, struct task *t) s->timeout = diff; } -/** - * all log messages are written to stderr - * - * \param ll: loglevel - * \param fmt: format string - */ -void para_log(int ll, const char* fmt,...) -{ - va_list argp; - - if (ll < conf.loglevel_arg) - return; - va_start(argp, fmt); - vfprintf(stderr, fmt, argp); - va_end(argp); -} +INIT_STDERR_LOGGING(conf.loglevel_arg) static struct writer_node_group *check_args(void) {