Date: Thu, 7 Feb 2008 14:30:23 GMT From: Steve Wise <swise@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 134987 for review Message-ID: <200802071430.m17EUNGL076445@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=134987 Change 134987 by swise@swise:vic10:iwarp on 2008/02/07 14:29:44 Fixed cxgbtool breakage after integration/syncing. Affected files ... .. //depot/projects/iwarp/usr.sbin/cxgbtool/cxgbtool.c#6 edit Differences ... ==== //depot/projects/iwarp/usr.sbin/cxgbtool/cxgbtool.c#6 (text+ko) ==== @@ -868,17 +868,17 @@ op = malloc(sizeof(*op)); if (!op) err(1, "get TCB"); - memset(op.buf, 0xaa, TCB_SIZE); op->mem_id = MEM_CM; op->addr = tcb_idx * TCB_SIZE; op->len = TCB_SIZE; op->buf = buf; + memset(op->buf, 0xaa, TCB_SIZE); if (doit(iff_name, CHELSIO_GET_MEM, op) < 0) err(1, "get TCB"); - for (d = (uint64_t *)op.buf, i = 0; i < TCB_SIZE / 32; i++) { + for (d = (uint64_t *)op->buf, i = 0; i < TCB_SIZE / 32; i++) { printf("%2u:", i); printf(" %08x %08x %08x %08x", (uint32_t)d[1], (uint32_t)(d[1] >> 32), (uint32_t)d[0], @@ -889,7 +889,7 @@ (uint32_t)(d[0] >> 32)); d += 2; } - free(op.buf); + free(op); return 0; } @@ -1875,7 +1875,6 @@ #endif else if (!strcmp(argv[2], "tcb")) r = get_tcb(argc, argv, 3, iff_name); -#ifdef notyet #ifdef WRC else if (!strcmp(argv[2], "wrc")) r = get_wrc(argc, argv, 3, iff_name);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802071430.m17EUNGL076445>