Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/i2c Disable DBCOOL_DEBUG by default, and make it com...
details: https://anonhg.NetBSD.org/src/rev/381d40ebe980
branches: trunk
changeset: 752456:381d40ebe980
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Fri Feb 26 18:16:18 2010 +0000
description:
Disable DBCOOL_DEBUG by default, and make it compile that way.
diffstat:
sys/dev/i2c/dbcool.c | 6 ++++--
sys/dev/i2c/dbcool_var.h | 6 +++---
2 files changed, 7 insertions(+), 5 deletions(-)
diffs (52 lines):
diff -r 5920fb752ee5 -r 381d40ebe980 sys/dev/i2c/dbcool.c
--- a/sys/dev/i2c/dbcool.c Fri Feb 26 15:23:20 2010 +0000
+++ b/sys/dev/i2c/dbcool.c Fri Feb 26 18:16:18 2010 +0000
@@ -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 @@
{
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;
diff -r 5920fb752ee5 -r 381d40ebe980 sys/dev/i2c/dbcool_var.h
--- a/sys/dev/i2c/dbcool_var.h Fri Feb 26 15:23:20 2010 +0000
+++ b/sys/dev/i2c/dbcool_var.h Fri Feb 26 18:16:18 2010 +0000
@@ -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
-/*
*/
#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>
Home |
Main Index |
Thread Index |
Old Index