[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 3 of 7 v4] blktap3/tapback: Logging for the tapback daemon and libxenio
Signed-off-by: Thanos Makatos <thanos.makatos@xxxxxxxxxx> --- Changed since v2: * minor whitespace clean up diff --git a/tools/blktap3/tapback/log.c b/tools/blktap3/tapback/log.c new file mode 100644 --- /dev/null +++ b/tools/blktap3/tapback/log.c @@ -0,0 +1,33 @@ +/* + * Copyright (C) 2012 Citrix Ltd. + * + * 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 the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + * USA. + */ + +#include "compiler.h" +#include <stdarg.h> +#include <syslog.h> + +void (*tapback_vlog) (int prio, const char *fmt, va_list ap) = vsyslog; + +__printf(2, 3) void +tapback_log(int prio, const char *fmt, ...) +{ + va_list ap; + va_start(ap, fmt); + tapback_vlog(prio, fmt, ap); + va_end(ap); +} _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |