Module Name:    src
Committed By:   christos
Date:           Wed Jan 22 16:32:09 UTC 2014

Modified Files:
        src/sys/arch/ews4800mips/ews4800mips: pdinfo.c

Log Message:
Fix debugging variables


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/ews4800mips/ews4800mips/pdinfo.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/ews4800mips/ews4800mips/pdinfo.c
diff -u src/sys/arch/ews4800mips/ews4800mips/pdinfo.c:1.4 src/sys/arch/ews4800mips/ews4800mips/pdinfo.c:1.5
--- src/sys/arch/ews4800mips/ews4800mips/pdinfo.c:1.4	Mon Apr 28 16:23:18 2008
+++ src/sys/arch/ews4800mips/ews4800mips/pdinfo.c	Wed Jan 22 11:32:09 2014
@@ -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 @@ pdinfo_valid(const struct pdinfo_sector 
 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);

Reply via email to