Project

General

Profile

Bug #715

mdb is muddled in its bitwise ops

Added by Rich Lowe about 10 years ago. Updated about 10 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
2011-02-08
Due date:
% Done:

100%

Estimated time:
Difficulty:
Tags:
Gerrit CR:

Description

Searching for typoed boolean ops in place of bitwise:

source:usr/src/cmd/mdb/common/modules/crypto/sched_impl.c@13283#L215: if (!flags && DCMD_ADDRSPEC) {
source:usr/src/cmd/mdb/common/modules/crypto/spi.c@13283#L93: if (!(flags && DCMD_ADDRSPEC))
source:usr/src/cmd/mdb/common/mdb/mdb_help.c@13283#L157: if ((flags && DCMD_ADDRSPEC) || argc != 0)
source:usr/src/cmd/mdb/common/mdb/mdb_help.c@13283#L179: if ((flags && DCMD_ADDRSPEC) || argc != 0)

Are bogus

Also available in: Atom PDF