Date: Sat, 29 Sep 2012 14:04:43 GMT From: Petr Lampa <lampa@fit.vutbr.cz> To: freebsd-gnats-submit@FreeBSD.org Subject: kern/172160: 1.95.2.2 revision of amr.c breaks amrstat Message-ID: <201209291404.q8TE4hQS005290@red.freebsd.org> Resent-Message-ID: <201209291410.q8TEA4P2030950@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 172160
>Category: kern
>Synopsis: 1.95.2.2 revision of amr.c breaks amrstat
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat Sep 29 14:10:04 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Petr Lampa
>Release: 9.1-PRERELEASE
>Organization:
BUT FIT
>Environment:
FreeBSD xxx 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #1: Sat Sep 29 10:39:13 CEST 2012 eeee:/usr/src/sys/amd64/compile/KAZI amd64
>Description:
amrstat stopped working at all after 1.95.2.2 revision of amr.c
>How-To-Repeat:
>Fix:
this change seems to be sufficient to get amrstat working again:
*** amr.c 2012-05-30 18:13:10.000000000 +0200
--- amr.c.my 2012-09-21 10:12:37.000000000 +0200
***************
*** 919,925 ****
/* build the command */
ac->ac_data = dp;
! ac->ac_length = real_length;
ac->ac_flags |= AMR_CMD_DATAIN|AMR_CMD_DATAOUT;
/* run the command */
--- 919,925 ----
/* build the command */
ac->ac_data = dp;
! ac->ac_length = au_length;
ac->ac_flags |= AMR_CMD_DATAIN|AMR_CMD_DATAOUT;
/* run the command */
>Release-Note:
>Audit-Trail:
>Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209291404.q8TE4hQS005290>
