summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2003-07-31 08:20:24 +0000
committerjulian <julian@FreeBSD.org>2003-07-31 08:20:24 +0000
commit1e4ad4f4d52ea7bdd767ac98bc639db1fe51b55b (patch)
treef7279bcb689d562218332984da8d468f8fb8ac60 /sys
parent7000eed3cfffcbd7d21011c00364b296bc60eaf4 (diff)
downloadFreeBSD-src-1e4ad4f4d52ea7bdd767ac98bc639db1fe51b55b.zip
FreeBSD-src-1e4ad4f4d52ea7bdd767ac98bc639db1fe51b55b.tar.gz
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,
Diffstat (limited to 'sys')
-rw-r--r--sys/i386/i386/sys_machdep.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/i386/i386/sys_machdep.c b/sys/i386/i386/sys_machdep.c
index 7f31e04..6900e51 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;
+ 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",
- start, num, (void *)descs);
+ uap->start, uap->num, (void *)uap->descs);
#endif
- if ((error = copyin(args, uap, sizeof(struct i386_ldt_args))) < 0)
- return(error);
-
if (uap->descs == NULL) {
/* Free descriptors */
if (uap->start == 0 && uap->num == 0) {
OpenPOWER on IntegriCloud