Date: Tue, 21 Nov 2006 19:59:14 GMT From: Warner Losh <imp@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 110344 for review Message-ID: <200611211959.kALJxE83000662@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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];
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611211959.kALJxE83000662>