From 276b02c5219d2eb28176eb7ebc240e75efe86e68 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Tue, 22 Feb 2005 06:33:42 +0000 Subject: [PATCH] * gphoto2-port.c: Do not use va_list twice (does not work on some platforms). git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7605 67ed7778-7388-44ab-90cf-0a291f65f57c --- libgphoto2_port/libgphoto2_port/gphoto2-port.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgphoto2_port/libgphoto2_port/gphoto2-port.c b/libgphoto2_port/libgphoto2_port/gphoto2-port.c index 6061ad3d7..df87addc2 100644 --- a/libgphoto2_port/libgphoto2_port/gphoto2-port.c +++ b/libgphoto2_port/libgphoto2_port/gphoto2-port.c @@ -838,7 +838,7 @@ gp_port_set_error (GPPort *port, const char *format, ...) va_start (args, format); vsnprintf (port->pc->error, sizeof (port->pc->error), _(format), args); - gp_logv (GP_LOG_ERROR, "gphoto2-port", format, args); + gp_log (GP_LOG_ERROR, "gphoto2-port", "%s", port->pc->error); va_end (args); } else port->pc->error[0] = '\0';