1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00

Fixed renaming of private DEBUG macro. The previous revision missed

one case in asc.c and almost all cases in gsc.c.
This commit is contained in:
Bruce Evans 1996-01-13 20:43:10 +00:00
parent 994689822d
commit 56ee67a3ff
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=13415
2 changed files with 10 additions and 10 deletions

View File

@ -34,7 +34,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*
* $Id: asc.c,v 1.13 1995/12/16 21:32:19 bde Exp $
* $Id: asc.c,v 1.14 1995/12/22 15:39:41 bde Exp $
*/
#include "asc.h"
@ -96,7 +96,7 @@
#define DMA1_READY 0x08
#define ASCDEBUG
#ifdef ASCDEBUG
# define lprintf if(scu->flags & DEBUG) printf
# define lprintf if(scu->flags & FLAG_DEBUG) printf
#else
# define lprintf (void)
#endif

View File

@ -71,7 +71,7 @@
#define DMA1_READY 0x08
#ifdef GSCDEBUG
#define lprintf if(scu->flags & DEBUG) printf
#define lprintf if(scu->flags & FLAG_DEBUG) printf
#else
#define lprintf (void)
#endif
@ -401,7 +401,7 @@ gscprobe (struct isa_device *isdp)
int stb;
struct gsc_geom geom = NEW_GEOM;
scu->flags = DEBUG;
scu->flags = FLAG_DEBUG;
lprintf("gsc%d.probe "
"on iobase 0x%03x, irq %d, drq %d, addr %d, size %d\n",
@ -477,7 +477,7 @@ gscprobe (struct isa_device *isdp)
lprintf("gsc%d.probe: ok\n", unit);
scu->flags &= ~DEBUG;
scu->flags &= ~FLAG_DEBUG;
return PROBE_SUCCESS;
}
@ -497,7 +497,7 @@ gscattach(struct isa_device *isdp)
struct gsc_unit *scu = unittab + unit;
char name[32];
scu->flags |= DEBUG;
scu->flags |= FLAG_DEBUG;
lprintf("gsc%d.attach: "
"iobase 0x%03x, irq %d, drq %d, addr %d, size %d\n",
@ -521,7 +521,7 @@ gscattach(struct isa_device *isdp)
scu->flags |= ATTACHED;
lprintf("gsc%d.attach: ok\n", unit);
scu->flags &= ~DEBUG;
scu->flags &= ~FLAG_DEBUG;
#ifdef DEVFS
#define GSC_UID 0
#define GSC_GID 13
@ -562,9 +562,9 @@ gscopen (dev_t dev, int flags, int fmt, struct proc *p)
struct gsc_unit *scu = unittab + unit;
if ( minor(dev) & DBUG_MASK )
scu->flags |= DEBUG;
scu->flags |= FLAG_DEBUG;
else
scu->flags &= ~DEBUG;
scu->flags &= ~FLAG_DEBUG;
switch(minor(dev) & FRMT_MASK) {
case FRMT_PBM:
@ -633,7 +633,7 @@ gscclose (dev_t dev, int flags, int fmt, struct proc *p)
scu->sbuf.size = INVALID;
scu->sbuf.poi = INVALID;
scu->flags &= ~(DEBUG | OPEN | READING);
scu->flags &= ~(FLAG_DEBUG | OPEN | READING);
return SUCCESS;
}