made canon debug use gp_log (compiles again!)
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2699 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2001-10-23 Hans Ulrich Niedermann <gp@n-dimensional.de>
|
||||
|
||||
* camlibs/canon/util.c: made canon debug use gp_log.
|
||||
this makes canon drv to compile again
|
||||
|
||||
2001-10-23 Lutz Müller <urc8@rz.uni-karlsruhe.de>
|
||||
|
||||
Patch from Fredrik <fredrik@krixor.xy.org>:
|
||||
@@ -11,7 +16,7 @@
|
||||
|
||||
* camlibs/stv0680: Added support for "Aiptek PenCam Trio"
|
||||
|
||||
2001-10-21 Hans Ulrich Niedermann <gp@n-dimensional.de>
|
||||
2001-10-22 Hans Ulrich Niedermann <gp@n-dimensional.de>
|
||||
|
||||
* packages/usbcam.group: added. linux-hotplug script
|
||||
* packages/usbcam.console: added. linux-hotplug script
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
|
||||
#include <gphoto2.h>
|
||||
|
||||
#include "gphoto2-port-log.h"
|
||||
#include "util.h"
|
||||
#include "psa50.h"
|
||||
|
||||
@@ -108,15 +109,14 @@ dump_hex (Camera *camera, const char *msg, const unsigned char *buf, int len)
|
||||
void
|
||||
debug_message (Camera *camera, const char *msg, ...)
|
||||
{
|
||||
struct canon_info *cs = (struct canon_info *) camera->camlib_data;
|
||||
va_list ap;
|
||||
va_list args;
|
||||
char buf[4096]
|
||||
;
|
||||
va_start (args, msg);
|
||||
vsnprintf (buf, sizeof(buf), msg, args);
|
||||
va_end (args);
|
||||
|
||||
|
||||
if (cs->debug) {
|
||||
va_start (ap, msg);
|
||||
vfprintf (stderr, msg, ap);
|
||||
va_end (ap);
|
||||
}
|
||||
gp_log (GP_LOG_DEBUG, "canon", "%s", buf);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user