kopia lustrzana https://gitlab.com/sane-project/backends
Merge branch 'genesys-debug-cleanup' into 'master'
genesys: Use the same debug identifier for the whole backend See merge request sane-project/backends!67merge-requests/70/head
commit
8cdd5ae22e
|
@ -58,8 +58,7 @@
|
||||||
* SANE backend for Genesys Logic GL646/GL841/GL842/GL843/GL846/GL847/GL124 based scanners
|
* SANE backend for Genesys Logic GL646/GL841/GL842/GL843/GL846/GL847/GL124 based scanners
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define BUILD 2511
|
#define DEBUG_NOT_STATIC
|
||||||
#define BACKEND_NAME genesys
|
|
||||||
|
|
||||||
#include "genesys.h"
|
#include "genesys.h"
|
||||||
#include "../include/sane/sanei_config.h"
|
#include "../include/sane/sanei_config.h"
|
||||||
|
@ -6450,8 +6449,8 @@ sane_init (SANE_Int * version_code, SANE_Auth_Callback authorize)
|
||||||
SANE_Status status;
|
SANE_Status status;
|
||||||
|
|
||||||
DBG_INIT ();
|
DBG_INIT ();
|
||||||
DBG(DBG_init, "SANE Genesys backend version %d.%d build %d from %s\n",
|
DBG(DBG_init, "SANE Genesys backend version %d.%d from %s\n",
|
||||||
SANE_CURRENT_MAJOR, V_MINOR, BUILD, PACKAGE_STRING);
|
SANE_CURRENT_MAJOR, V_MINOR, PACKAGE_STRING);
|
||||||
#ifdef HAVE_LIBUSB
|
#ifdef HAVE_LIBUSB
|
||||||
DBG(DBG_init, "SANE Genesys backend built with libusb-1.0\n");
|
DBG(DBG_init, "SANE Genesys backend built with libusb-1.0\n");
|
||||||
#endif
|
#endif
|
||||||
|
@ -6460,7 +6459,7 @@ sane_init (SANE_Int * version_code, SANE_Auth_Callback authorize)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (version_code)
|
if (version_code)
|
||||||
*version_code = SANE_VERSION_CODE (SANE_CURRENT_MAJOR, V_MINOR, BUILD);
|
*version_code = SANE_VERSION_CODE (SANE_CURRENT_MAJOR, V_MINOR, 0);
|
||||||
|
|
||||||
DBG(DBG_proc, "%s: authorize %s null\n", __func__, authorize ? "!=" : "==");
|
DBG(DBG_proc, "%s: authorize %s null\n", __func__, authorize ? "!=" : "==");
|
||||||
|
|
||||||
|
|
|
@ -47,6 +47,10 @@
|
||||||
#ifndef GENESYS_H
|
#ifndef GENESYS_H
|
||||||
#define GENESYS_H
|
#define GENESYS_H
|
||||||
|
|
||||||
|
#ifndef BACKEND_NAME
|
||||||
|
# define BACKEND_NAME genesys
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "genesys_low.h"
|
#include "genesys_low.h"
|
||||||
|
|
||||||
#ifndef PATH_MAX
|
#ifndef PATH_MAX
|
||||||
|
|
|
@ -42,8 +42,7 @@
|
||||||
If you do not wish that, delete this exception notice.
|
If you do not wish that, delete this exception notice.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef BACKEND_NAME
|
#define DEBUG_DECLARE_ONLY
|
||||||
#define BACKEND_NAME genesys_gl124
|
|
||||||
|
|
||||||
#include "genesys_gl124.h"
|
#include "genesys_gl124.h"
|
||||||
|
|
||||||
|
|
|
@ -48,8 +48,7 @@
|
||||||
If you do not wish that, delete this exception notice.
|
If you do not wish that, delete this exception notice.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef BACKEND_NAME
|
#define DEBUG_DECLARE_ONLY
|
||||||
#define BACKEND_NAME genesys_gl646
|
|
||||||
|
|
||||||
#include "genesys_gl646.h"
|
#include "genesys_gl646.h"
|
||||||
|
|
||||||
|
|
|
@ -50,8 +50,7 @@
|
||||||
If you do not wish that, delete this exception notice.
|
If you do not wish that, delete this exception notice.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef BACKEND_NAME
|
#define DEBUG_DECLARE_ONLY
|
||||||
#define BACKEND_NAME genesys_gl841
|
|
||||||
|
|
||||||
#include "genesys_gl841.h"
|
#include "genesys_gl841.h"
|
||||||
|
|
||||||
|
|
|
@ -42,8 +42,7 @@
|
||||||
If you do not wish that, delete this exception notice.
|
If you do not wish that, delete this exception notice.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef BACKEND_NAME
|
#define DEBUG_DECLARE_ONLY
|
||||||
#define BACKEND_NAME genesys_gl843
|
|
||||||
|
|
||||||
#include "genesys_gl843.h"
|
#include "genesys_gl843.h"
|
||||||
|
|
||||||
|
|
|
@ -43,9 +43,6 @@
|
||||||
|
|
||||||
#include "genesys.h"
|
#include "genesys.h"
|
||||||
|
|
||||||
#define DBGSTART DBG (DBG_proc, "%s start\n", __func__);
|
|
||||||
#define DBGCOMPLETED DBG (DBG_proc, "%s completed\n", __func__);
|
|
||||||
|
|
||||||
#define REG01 0x01
|
#define REG01 0x01
|
||||||
#define REG01_CISSET 0x80
|
#define REG01_CISSET 0x80
|
||||||
#define REG01_DOGENB 0x40
|
#define REG01_DOGENB 0x40
|
||||||
|
|
|
@ -46,8 +46,8 @@
|
||||||
*
|
*
|
||||||
* This file handles GL846 and GL845 ASICs since they are really close to each other.
|
* This file handles GL846 and GL845 ASICs since they are really close to each other.
|
||||||
*/
|
*/
|
||||||
#undef BACKEND_NAME
|
|
||||||
#define BACKEND_NAME genesys_gl846
|
#define DEBUG_DECLARE_ONLY
|
||||||
|
|
||||||
#include "genesys_gl846.h"
|
#include "genesys_gl846.h"
|
||||||
|
|
||||||
|
|
|
@ -42,8 +42,7 @@
|
||||||
If you do not wish that, delete this exception notice.
|
If you do not wish that, delete this exception notice.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef BACKEND_NAME
|
#define DEBUG_DECLARE_ONLY
|
||||||
#define BACKEND_NAME genesys_gl847
|
|
||||||
|
|
||||||
#include "genesys_gl847.h"
|
#include "genesys_gl847.h"
|
||||||
|
|
||||||
|
|
|
@ -41,8 +41,8 @@
|
||||||
whether to permit this exception to apply to your modifications.
|
whether to permit this exception to apply to your modifications.
|
||||||
If you do not wish that, delete this exception notice.
|
If you do not wish that, delete this exception notice.
|
||||||
*/
|
*/
|
||||||
#undef BACKEND_NAME
|
|
||||||
#define BACKEND_NAME genesys_low
|
#define DEBUG_DECLARE_ONLY
|
||||||
|
|
||||||
#include "genesys_low.h"
|
#include "genesys_low.h"
|
||||||
#include "assert.h"
|
#include "assert.h"
|
||||||
|
|
Ładowanie…
Reference in New Issue