summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Lowe <richlowe@richlowe.net>2011-02-09 11:47:49 -0500
committerRichard Lowe <richlowe@richlowe.net>2011-02-09 11:47:49 -0500
commitfc10aa482a49e233a416c80fd303cf3b857329eb (patch)
tree50202048d535bbf83f1a40153cae34a6bb77ea05
parent605a716e6d38b3af09034c254382d0ae3b7d5f70 (diff)
downloadillumos-joyent-fc10aa482a49e233a416c80fd303cf3b857329eb.tar.gz
715 mdb is muddled in its bitwise ops
Reviewed by: garrett@nexenta.com Reviewed by: roland.mainz@nrubsig.org Approved by: garrett@nexenta.com
-rw-r--r--usr/src/cmd/mdb/common/mdb/mdb_help.c6
-rw-r--r--usr/src/cmd/mdb/common/modules/crypto/sched_impl.c2
-rw-r--r--usr/src/cmd/mdb/common/modules/crypto/spi.c2
3 files changed, 4 insertions, 6 deletions
diff --git a/usr/src/cmd/mdb/common/mdb/mdb_help.c b/usr/src/cmd/mdb/common/mdb/mdb_help.c
index a29a561a9e..2fe3ad56a1 100644
--- a/usr/src/cmd/mdb/common/mdb/mdb_help.c
+++ b/usr/src/cmd/mdb/common/mdb/mdb_help.c
@@ -24,8 +24,6 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <mdb/mdb_modapi.h>
#include <mdb/mdb_macalias.h>
#include <mdb/mdb_fmt.h>
@@ -154,7 +152,7 @@ print_wdesc(mdb_var_t *v, void *ignored)
int
cmd_walkers(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv)
{
- if ((flags && DCMD_ADDRSPEC) || argc != 0)
+ if ((flags & DCMD_ADDRSPEC) || argc != 0)
return (DCMD_USAGE);
mdb_nv_sort_iter(&mdb.m_walkers, print_wdesc, NULL, UM_SLEEP | UM_GC);
@@ -176,7 +174,7 @@ print_ddesc(mdb_var_t *v, void *ignored)
int
cmd_dcmds(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv)
{
- if ((flags && DCMD_ADDRSPEC) || argc != 0)
+ if ((flags & DCMD_ADDRSPEC) || argc != 0)
return (DCMD_USAGE);
mdb_nv_sort_iter(&mdb.m_dcmds, print_ddesc, NULL, UM_SLEEP | UM_GC);
diff --git a/usr/src/cmd/mdb/common/modules/crypto/sched_impl.c b/usr/src/cmd/mdb/common/modules/crypto/sched_impl.c
index 015f5699e2..14549dca4e 100644
--- a/usr/src/cmd/mdb/common/modules/crypto/sched_impl.c
+++ b/usr/src/cmd/mdb/common/modules/crypto/sched_impl.c
@@ -212,7 +212,7 @@ kcf_global_swq(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv)
kcf_global_swq_t swq;
kcf_global_swq_t *ptr;
- if (!flags && DCMD_ADDRSPEC) {
+ if (!(flags & DCMD_ADDRSPEC)) {
if (mdb_readsym(&ptr, sizeof (uintptr_t), "gswq")
== -1) {
mdb_warn("cannot read gswq");
diff --git a/usr/src/cmd/mdb/common/modules/crypto/spi.c b/usr/src/cmd/mdb/common/modules/crypto/spi.c
index 13d35e64e3..775884f358 100644
--- a/usr/src/cmd/mdb/common/modules/crypto/spi.c
+++ b/usr/src/cmd/mdb/common/modules/crypto/spi.c
@@ -90,7 +90,7 @@ crypto_provider_ext_info(uintptr_t addr, uint_t flags, int argc,
*/
char scratch[33];
- if (!(flags && DCMD_ADDRSPEC))
+ if (!(flags & DCMD_ADDRSPEC))
return (DCMD_USAGE);
if (mdb_vread(&ext_prov, sizeof (crypto_provider_ext_info_t), addr)