Use Debug level 1 for library errors so that nothing is printed when no

camera is connected.
merge-requests/1/head
Peter Fales 2003-07-02 22:09:52 +00:00
rodzic 8b2de7255e
commit bf413cce1c
1 zmienionych plików z 9 dodań i 10 usunięć

Wyświetl plik

@ -1,12 +1,12 @@
/* Please note! This is extremely alpha code, and is really intended as
* a "proof of concept" since I don't yet know whether it's going to
* to be practical and/or possible to implement a the complete backend.
* It's also been tested with only cameras I have access to: the Kodak DC240
/* Please note! Although intended to support multiple camera types
* it's been tested with only cameras I have access to: the Kodak DC240
* and the Directory Browse "camera." I'm very interested
* in learning what it would take to support more cameras. In
* particular, the current incarnation will only support cameras
* that directly generate jpeg files.
*
* Please report sucesses or failures using this backend!
*
* However, having said that, I've already found it to be quite useful
* even in its current form - one reason is that gphoto2 provides access
* to the camera via USB which is not supported by the regular DC240
@ -106,8 +106,7 @@
#include <gphoto2-camera.h>
#include <gphoto2-port-log.h>
#define CHECK_EXIT(f) {int res = f; if (res < 0) {DBG (0,"ERROR: %s\n", gp_result_as_string (res)); return (SANE_STATUS_INVAL);}}
#define CHECK_RET(f) {int res = f; if (res < 0) {DBG (0,"ERROR: %s\n", gp_result_as_string (res)); return (SANE_STATUS_INVAL);}}
#define CHECK_RET(f) {int res = f; if (res < 0) {DBG (1,"ERROR: %s\n", gp_result_as_string (res)); return (SANE_STATUS_INVAL);}}
#ifndef PATH_MAX
# define PATH_MAX 1024