From 1716a1af0dcd474c944793e89ffcc6362a26bfed Mon Sep 17 00:00:00 2001 From: Julian Elischer Date: Thu, 31 Jul 2003 08:20:24 +0000 Subject: [PATCH] Have a go at unbreaking the tinderbox by fixing a debug printf. The other option would be to remove it, but I can imagine it may be useful for the forseeable future as we fiddle with segments in KSE and thr libraries, --- sys/i386/i386/sys_machdep.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/i386/i386/sys_machdep.c b/sys/i386/i386/sys_machdep.c index 7f31e04866d8..6900e511dfc4 100644 --- a/sys/i386/i386/sys_machdep.c +++ b/sys/i386/i386/sys_machdep.c @@ -423,14 +423,14 @@ i386_set_ldt(td, args) union descriptor *descs, *dp; int descs_size; -#ifdef DEBUG - printf("i386_set_ldt: start=%d num=%d descs=%p\n", - start, num, (void *)descs); -#endif - if ((error = copyin(args, uap, sizeof(struct i386_ldt_args))) < 0) return(error); +#ifdef DEBUG + printf("i386_set_ldt: start=%d num=%d descs=%p\n", + uap->start, uap->num, (void *)uap->descs); +#endif + if (uap->descs == NULL) { /* Free descriptors */ if (uap->start == 0 && uap->num == 0) {