Disable DBCOOL_DEBUG by default, and make it compile that way.

This commit is contained in:
pgoyette 2010-02-26 18:16:18 +00:00
parent 5b02e50b03
commit 933c70b5e1
2 changed files with 7 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: dbcool.c,v 1.16 2010/02/24 23:37:45 pgoyette Exp $ */
/* $NetBSD: dbcool.c,v 1.17 2010/02/26 18:16:18 pgoyette Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@ -49,7 +49,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: dbcool.c,v 1.16 2010/02/24 23:37:45 pgoyette Exp $");
__KERNEL_RCSID(0, "$NetBSD: dbcool.c,v 1.17 2010/02/26 18:16:18 pgoyette Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -1459,7 +1459,9 @@ dbcool_setup(device_t self)
{
struct dbcool_softc *sc = device_private(self);
const struct sysctlnode *me = NULL;
#ifdef DBCOOL_DEBUG
struct sysctlnode *node = NULL;
#endif
uint8_t cfg_val, cfg_reg;
int ro_flag, rw_flag, ret, error;

View File

@ -1,4 +1,4 @@
/* $NetBSD: dbcool_var.h,v 1.9 2010/02/24 23:37:45 pgoyette Exp $ */
/* $NetBSD: dbcool_var.h,v 1.10 2010/02/26 18:16:18 pgoyette Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@ -36,12 +36,12 @@
#ifndef DBCOOLVAR_H
#define DBCOOLVAR_H
#define DBCOOL_DEBUG
/*
#define DBCOOL_DEBUG
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: dbcool_var.h,v 1.9 2010/02/24 23:37:45 pgoyette Exp $");
__KERNEL_RCSID(0, "$NetBSD: dbcool_var.h,v 1.10 2010/02/26 18:16:18 pgoyette Exp $");
#include <dev/i2c/i2cvar.h>