Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/ews4800mips/ews4800mips Fix debugging variables
details: https://anonhg.NetBSD.org/src/rev/182708537af5
branches: trunk
changeset: 326230:182708537af5
user: christos <christos%NetBSD.org@localhost>
date: Wed Jan 22 16:32:09 2014 +0000
description:
Fix debugging variables
diffstat:
sys/arch/ews4800mips/ews4800mips/pdinfo.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (39 lines):
diff -r b1e66749cadb -r 182708537af5 sys/arch/ews4800mips/ews4800mips/pdinfo.c
--- a/sys/arch/ews4800mips/ews4800mips/pdinfo.c Wed Jan 22 16:27:01 2014 +0000
+++ b/sys/arch/ews4800mips/ews4800mips/pdinfo.c Wed Jan 22 16:32:09 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pdinfo.c,v 1.4 2008/04/28 20:23:18 martin Exp $ */
+/* $NetBSD: pdinfo.c,v 1.5 2014/01/22 16:32:09 christos Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pdinfo.c,v 1.4 2008/04/28 20:23:18 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pdinfo.c,v 1.5 2014/01/22 16:32:09 christos Exp $");
#include <sys/types.h>
#include <sys/systm.h>
@@ -71,16 +71,16 @@
bool
pdinfo_sanity(const struct pdinfo_sector *disk)
{
- const struct disk_geometory *geom;
- const struct disk_ux *ux;
if (!pdinfo_valid(disk)) {
DPRINTF("no physical disk info.\n");
return false;
}
- geom = &disk->geometory;
- ux = &disk->ux;
+#ifdef PDINFO_DEBUG
+ const struct disk_geometory *geom = &disk->geometory;
+ const struct disk_ux *ux = &disk->ux;
+#endif
DPRINTF("physical disk sector size %dbyte\n", sizeof *disk);
DPRINTF("[disk]\n");
DPRINTF("drive_id = %#x\n", disk->drive_id);
Home |
Main Index |
Thread Index |
Old Index