From owner-p4-projects@FreeBSD.ORG Thu Jun 19 05:57:55 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 9E3B8106566B; Thu, 19 Jun 2008 05:57:55 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6077C106568F for ; Thu, 19 Jun 2008 05:57:55 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 599E48FC17 for ; Thu, 19 Jun 2008 05:57:55 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m5J5vtWt029737 for ; Thu, 19 Jun 2008 05:57:55 GMT (envelope-from julian@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m5J5vtpN029735 for perforce@freebsd.org; Thu, 19 Jun 2008 05:57:55 GMT (envelope-from julian@freebsd.org) Date: Thu, 19 Jun 2008 05:57:55 GMT Message-Id: <200806190557.m5J5vtpN029735@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to julian@freebsd.org using -f From: Julian Elischer To: Perforce Change Reviews Cc: Subject: PERFORCE change 143746 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jun 2008 05:57:55 -0000 http://perforce.freebsd.org/chv.cgi?CH=143746 Change 143746 by julian@julian_trafmon1 on 2008/06/19 05:57:37 white space diffs and such Affected files ... .. //depot/projects/vimage-devel/src/sys/i386/i386/dump_machdep.c#5 edit .. //depot/projects/vimage-devel/src/sys/i386/i386/minidump_machdep.c#5 edit .. //depot/projects/vimage-devel/src/sys/kern/kern_xxx.c#4 edit Differences ... ==== //depot/projects/vimage-devel/src/sys/i386/i386/dump_machdep.c#5 (text+ko) ==== @@ -112,7 +112,6 @@ mkdumpheader(struct kerneldumpheader *kdh, uint32_t archver, uint64_t dumplen, uint32_t blksz) { - INIT_VPROCG(TD_TO_VPROCG(&thread0)); /* XXX */ bzero(kdh, sizeof(*kdh)); strncpy(kdh->magic, KERNELDUMPMAGIC, sizeof(kdh->magic)); ==== //depot/projects/vimage-devel/src/sys/i386/i386/minidump_machdep.c#5 (text) ==== @@ -86,7 +86,6 @@ mkdumpheader(struct kerneldumpheader *kdh, uint32_t archver, uint64_t dumplen, uint32_t blksz) { - INIT_VPROCG(TD_TO_VPROCG(curthread)); bzero(kdh, sizeof(*kdh)); strncpy(kdh->magic, KERNELDUMPMAGIC, sizeof(kdh->magic)); ==== //depot/projects/vimage-devel/src/sys/kern/kern_xxx.c#4 (text+ko) ==== @@ -273,21 +273,20 @@ struct setdomainname_args *uap; { INIT_VPROCG(TD_TO_VPROCG(td)); - int error, domainnamelen; + int error, domainnamelen; error = priv_check(td, PRIV_SETDOMAINNAME); -printf("setdomainname error=%d\n", error); if (error) return (error); mtx_lock(&Giant); - if ((u_int)uap->len > sizeof (V_domainname) - 1) { + if ((u_int)uap->len > sizeof (V_domainname) - 1) { error = EINVAL; goto done2; } - domainnamelen = uap->len; - error = copyin(uap->domainname, V_domainname, uap->len); - V_domainname[domainnamelen] = 0; + domainnamelen = uap->len; + error = copyin(uap->domainname, V_domainname, uap->len); + V_domainname[domainnamelen] = 0; done2: mtx_unlock(&Giant); - return (error); + return (error); }