mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Operator precedence bug
PR: 11415 Submitted by: Christopher Peterson <cpeterso@cs.washington.edu>
This commit is contained in:
parent
6a2648e613
commit
271694cc1e
2 changed files with 4 additions and 4 deletions
|
|
@ -25,7 +25,7 @@
|
|||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: wst.c,v 1.16 1999/04/13 19:38:11 peter Exp $
|
||||
* $Id: wst.c,v 1.17 1999/04/28 10:53:06 dt Exp $
|
||||
*/
|
||||
|
||||
#include "wdc.h"
|
||||
|
|
@ -423,7 +423,7 @@ wststrategy(struct buf *bp)
|
|||
}
|
||||
|
||||
if (bp->b_bcount > t->blksize*t->cap.ctl) {
|
||||
if (t->flags & WST_CTL_WARN == 0) {
|
||||
if ((t->flags & WST_CTL_WARN) == 0) {
|
||||
printf("wst%d: WARNING: CTL exceeded %ld>%d\n",
|
||||
lun, bp->b_bcount, t->blksize*t->cap.ctl);
|
||||
t->flags |= WST_CTL_WARN;
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: wst.c,v 1.16 1999/04/13 19:38:11 peter Exp $
|
||||
* $Id: wst.c,v 1.17 1999/04/28 10:53:06 dt Exp $
|
||||
*/
|
||||
|
||||
#include "wdc.h"
|
||||
|
|
@ -423,7 +423,7 @@ wststrategy(struct buf *bp)
|
|||
}
|
||||
|
||||
if (bp->b_bcount > t->blksize*t->cap.ctl) {
|
||||
if (t->flags & WST_CTL_WARN == 0) {
|
||||
if ((t->flags & WST_CTL_WARN) == 0) {
|
||||
printf("wst%d: WARNING: CTL exceeded %ld>%d\n",
|
||||
lun, bp->b_bcount, t->blksize*t->cap.ctl);
|
||||
t->flags |= WST_CTL_WARN;
|
||||
|
|
|
|||
Loading…
Reference in a new issue