Date: Thu, 10 Jan 2008 23:04:00 GMT From: Steve Wise <swise@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 132993 for review Message-ID: <200801102304.m0AN40Bi028053@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=132993 Change 132993 by swise@swise:vic10:iwarp on 2008/01/10 23:03:05 Fixed cxgbtol memdump command. Affected files ... .. //depot/projects/iwarp/usr.sbin/cxgbtool/cxgbtool.c#4 edit Differences ... ==== //depot/projects/iwarp/usr.sbin/cxgbtool/cxgbtool.c#4 (text+ko) ==== @@ -650,6 +650,7 @@ int vers; struct ifconf_regs regs; + regs.len = REGDUMP_SIZE; if ((regs.data = malloc(REGDUMP_SIZE)) == NULL) err(1, "can't malloc"); @@ -1397,7 +1398,7 @@ if (doit(iff_name, CHELSIO_GET_MEM, &mem) < 0) err(1, "memory dump"); - hexdump_8b(mem.addr, (uint64_t *)mem.buf, mem.len >> 3); + hexdump_8b(mem.addr, (uint64_t *)mem.buf, len >> 3); free(mem.buf); return 0; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801102304.m0AN40Bi028053>