Module Name:    src
Committed By:   jakllsch
Date:           Mon Oct 10 15:15:28 UTC 2011

Modified Files:
        src/sys/arch/x86/x86: sys_machdep.c

Log Message:
x86_print_ldt() is only used in the USER_LDT && LDT_DEBUG case.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/sys/arch/x86/x86/sys_machdep.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/x86/x86/sys_machdep.c
diff -u src/sys/arch/x86/x86/sys_machdep.c:1.24 src/sys/arch/x86/x86/sys_machdep.c:1.25
--- src/sys/arch/x86/x86/sys_machdep.c:1.24	Wed Jul  7 01:20:50 2010
+++ src/sys/arch/x86/x86/sys_machdep.c	Mon Oct 10 15:15:28 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: sys_machdep.c,v 1.24 2010/07/07 01:20:50 chs Exp $	*/
+/*	$NetBSD: sys_machdep.c,v 1.25 2011/10/10 15:15:28 jakllsch Exp $	*/
 
 /*-
  * Copyright (c) 1998, 2007, 2009 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_machdep.c,v 1.24 2010/07/07 01:20:50 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_machdep.c,v 1.25 2011/10/10 15:15:28 jakllsch Exp $");
 
 #include "opt_mtrr.h"
 #include "opt_perfctrs.h"
@@ -97,7 +97,7 @@ int x86_set_sdbase(void *, char, lwp_t *
 int x86_get_sdbase32(void *, char);
 int x86_get_sdbase(void *, char);
 
-#ifdef LDT_DEBUG
+#if defined(USER_LDT) && defined(LDT_DEBUG)
 static void x86_print_ldt(int, const struct segment_descriptor *);
 
 static void

Reply via email to