aboutsummaryrefslogtreecommitdiff
path: root/sys/ddb/db_sym.c
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2015-05-18 22:27:46 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2015-05-18 22:27:46 +0000
commit2b490bc747e67a2b9cecb12321ed4719600d31e9 (patch)
tree78fcf1d6dfd29cf1db67517d6c15015af1f980a5 /sys/ddb/db_sym.c
parentd44bc1335e8a3bdb54198005e191aaebb3903d1b (diff)
Notes
Diffstat (limited to 'sys/ddb/db_sym.c')
-rw-r--r--sys/ddb/db_sym.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/sys/ddb/db_sym.c b/sys/ddb/db_sym.c
index ff6889edec9a4..dad467a2304dd 100644
--- a/sys/ddb/db_sym.c
+++ b/sys/ddb/db_sym.c
@@ -206,10 +206,10 @@ boolean_t
db_eqname(const char *src, const char *dst, int c)
{
if (!strcmp(src, dst))
- return (TRUE);
+ return (true);
if (src[0] == c)
return (!strcmp(src+1,dst));
- return (FALSE);
+ return (false);
}
boolean_t
@@ -219,9 +219,9 @@ db_value_of_name(const char *name, db_expr_t *valuep)
sym = db_lookup(name);
if (sym == C_DB_SYM_NULL)
- return (FALSE);
+ return (false);
db_symbol_values(sym, &name, valuep);
- return (TRUE);
+ return (true);
}
boolean_t
@@ -239,12 +239,12 @@ db_value_of_name_pcpu(const char *name, db_expr_t *valuep)
snprintf(tmp, sizeof(tmp), "pcpu_entry_%s", name);
sym = db_lookup(tmp);
if (sym == C_DB_SYM_NULL)
- return (FALSE);
+ return (false);
db_symbol_values(sym, &name, &value);
if (value < DPCPU_START || value >= DPCPU_STOP)
- return (FALSE);
+ return (false);
*valuep = (db_expr_t)((uintptr_t)value + dpcpu_off[cpu]);
- return (TRUE);
+ return (true);
}
boolean_t
@@ -263,14 +263,14 @@ db_value_of_name_vnet(const char *name, db_expr_t *valuep)
snprintf(tmp, sizeof(tmp), "vnet_entry_%s", name);
sym = db_lookup(tmp);
if (sym == C_DB_SYM_NULL)
- return (FALSE);
+ return (false);
db_symbol_values(sym, &name, &value);
if (value < VNET_START || value >= VNET_STOP)
- return (FALSE);
+ return (false);
*valuep = (db_expr_t)((uintptr_t)value + vnet->vnet_data_base);
- return (TRUE);
+ return (true);
#else
- return (FALSE);
+ return (false);
#endif
}
@@ -328,10 +328,10 @@ db_lookup(const char *symstr)
}
/*
- * If TRUE, check across symbol tables for multiple occurrences
+ * If true, check across symbol tables for multiple occurrences
* of a name. Might slow things down quite a bit.
*/
-static volatile boolean_t db_qualify_ambiguous_names = FALSE;
+static volatile boolean_t db_qualify_ambiguous_names = false;
/*
* Does this symbol name appear in more than one symbol table?
@@ -343,20 +343,20 @@ db_symbol_is_ambiguous(c_db_sym_t sym)
const char *sym_name;
register int i;
register
- boolean_t found_once = FALSE;
+ boolean_t found_once = false;
if (!db_qualify_ambiguous_names)
- return FALSE;
+ return (false);
db_symbol_values(sym, &sym_name, 0);
for (i = 0; i < db_nsymtab; i++) {
if (X_db_lookup(&db_symtabs[i], sym_name)) {
if (found_once)
- return TRUE;
- found_once = TRUE;
+ return true;
+ found_once = true;
}
}
- return FALSE;
+ return (false);
}
/*