From owner-p4-projects@FreeBSD.ORG Tue Nov 21 20:00:28 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id A35DD16A47C; Tue, 21 Nov 2006 20:00:28 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 603B716A415 for ; Tue, 21 Nov 2006 20:00:28 +0000 (UTC) (envelope-from imp@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3A96E43D5A for ; Tue, 21 Nov 2006 19:59:46 +0000 (GMT) (envelope-from imp@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id kALJxEY3000665 for ; Tue, 21 Nov 2006 19:59:14 GMT (envelope-from imp@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kALJxE83000662 for perforce@freebsd.org; Tue, 21 Nov 2006 19:59:14 GMT (envelope-from imp@freebsd.org) Date: Tue, 21 Nov 2006 19:59:14 GMT Message-Id: <200611211959.kALJxE83000662@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to imp@freebsd.org using -f From: Warner Losh To: Perforce Change Reviews Cc: Subject: PERFORCE change 110344 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: Tue, 21 Nov 2006 20:00:28 -0000 http://perforce.freebsd.org/chv.cgi?CH=110344 Change 110344 by imp@imp_lighthouse on 2006/11/21 19:58:18 pretty up Affected files ... .. //depot/projects/arm/src/sys/dev/iicbus/iic.c#8 edit Differences ... ==== //depot/projects/arm/src/sys/dev/iicbus/iic.c#8 (text+ko) ==== @@ -315,10 +315,10 @@ usrbufs = malloc(sizeof(void *) * d->nmsgs, M_TEMP, M_ZERO | M_WAITOK); error = copyin(d->msgs, buf, sizeof(*d->msgs) * d->nmsgs); if (error) { - printf("copying returns %d\n", error); + printf("copyin msgs returns %d\n", error); break; } - /* Allocate kernel buffers for userland data, copyin write data */ + /* Alloc kernel buffers for userland data, copyin write data */ for (i = 0; i < d->nmsgs; i++) { m = &((struct iic_msg *)buf)[i]; usrbufs[i] = m->buf; @@ -327,7 +327,6 @@ copyin(usrbufs[i], m->buf, m->len); } error = iicbus_transfer(parent, (struct iic_msg *)buf, d->nmsgs); - printf("transfer returns %d\n", error); /* Copyout all read segments, free up kernel buffers */ for (i = 0; i < d->nmsgs; i++) { m = &((struct iic_msg *)buf)[i];