blob: 2bf61634222ab1fa712c3434eb9d05797732b039 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
$NetBSD: patch-bf,v 1.2 2002/05/06 13:16:58 bouyer Exp $
--- changer-src/chg-scsi.c.orig 24 Mar 2002 19:04:12 -0000
+++ changer-src/chg-scsi.c 3 May 2002 16:15:24 -0000
@@ -1037,6 +1037,7 @@
char *clean_file=NULL;
char *time_file=NULL;
+ char *ptr; /* a public pointer .... */
/*
* For the emubarcode stuff
*/
@@ -1065,6 +1066,7 @@
chg.device = NULL;
chg.labelfile = NULL;
chg.conf = NULL;
+ chg.debuglevel = NULL;
#ifdef CHG_SCSI_STANDALONE
printf("Ups standalone\n");
#else
@@ -1085,6 +1087,11 @@
memset(pDev, 0, sizeof(OpenFiles_T) * CHG_MAXDEV );
+ if ((ptr=getenv("CHG_DEBUG")) != NULL)
+ {
+ chg.debuglevel = strdup(ptr);
+ }
+
switch(com.command_code)
{
case COM_SCAN:
@@ -1588,7 +1595,7 @@
printf("%d %d 1", loaded, use_slots);
- if (BarCode(fd) == 1 || emubarcode == 1)
+ if (BarCode(fd) == 1 || emubarcode == 1 || chg.havebarcode == 1)
{
printf(" 1\n");
} else {
|