PERFORCE change 132993 for review
Steve Wise
swise at FreeBSD.org
Thu Jan 10 15:04:01 PST 2008
http://perforce.freebsd.org/chv.cgi?CH=132993
Change 132993 by swise at 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;
}
More information about the p4-projects
mailing list