summaryrefslogtreecommitdiffstats
path: root/sys/ddb
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2014-10-11 20:25:19 +0000
committerpfg <pfg@FreeBSD.org>2014-10-11 20:25:19 +0000
commit12749f249cd5420cb8055ad64e860089dc7a0247 (patch)
tree05aca1b60f6c69a7cb563b3c7678a3e419b3b2df /sys/ddb
parente64c35384b3c05a815fca01fada16afa5a7990d2 (diff)
downloadFreeBSD-src-12749f249cd5420cb8055ad64e860089dc7a0247.zip
FreeBSD-src-12749f249cd5420cb8055ad64e860089dc7a0247.tar.gz
ddb: space/tab fixes.
No functional change. MFC after: 3 days
Diffstat (limited to 'sys/ddb')
-rw-r--r--sys/ddb/db_break.c6
-rw-r--r--sys/ddb/db_command.c2
-rw-r--r--sys/ddb/db_output.h2
-rw-r--r--sys/ddb/db_print.c2
-rw-r--r--sys/ddb/db_ps.c4
-rw-r--r--sys/ddb/db_run.c2
-rw-r--r--sys/ddb/db_sym.h2
-rw-r--r--sys/ddb/db_textdump.c6
-rw-r--r--sys/ddb/db_variables.h2
-rw-r--r--sys/ddb/db_watch.c8
-rw-r--r--sys/ddb/db_watch.h2
11 files changed, 19 insertions, 19 deletions
diff --git a/sys/ddb/db_break.c b/sys/ddb/db_break.c
index 02833ec..772fd9f 100644
--- a/sys/ddb/db_break.c
+++ b/sys/ddb/db_break.c
@@ -161,13 +161,13 @@ db_breakpoint_t
db_find_breakpoint_here(addr)
db_addr_t addr;
{
- return db_find_breakpoint(db_map_addr(addr), addr);
+ return db_find_breakpoint(db_map_addr(addr), addr);
}
static boolean_t db_breakpoints_inserted = TRUE;
#ifndef BKPT_WRITE
-#define BKPT_WRITE(addr, storage) \
+#define BKPT_WRITE(addr, storage) \
do { \
*storage = db_get_value(addr, BKPT_SIZE, FALSE); \
db_put_value(addr, BKPT_SIZE, BKPT_SET(*storage)); \
@@ -175,7 +175,7 @@ do { \
#endif
#ifndef BKPT_CLEAR
-#define BKPT_CLEAR(addr, storage) \
+#define BKPT_CLEAR(addr, storage) \
db_put_value(addr, BKPT_SIZE, *storage)
#endif
diff --git a/sys/ddb/db_command.c b/sys/ddb/db_command.c
index e890a17..dd9faef 100644
--- a/sys/ddb/db_command.c
+++ b/sys/ddb/db_command.c
@@ -648,7 +648,7 @@ db_kill(dummy1, dummy2, dummy3, dummy4)
db_expr_t old_radix, pid, sig;
struct proc *p;
-#define DB_ERROR(f) do { db_printf f; db_flush_lex(); goto out; } while (0)
+#define DB_ERROR(f) do { db_printf f; db_flush_lex(); goto out; } while (0)
/*
* PIDs and signal numbers are typically represented in base
diff --git a/sys/ddb/db_output.h b/sys/ddb/db_output.h
index cbf9f0e..795719f 100644
--- a/sys/ddb/db_output.h
+++ b/sys/ddb/db_output.h
@@ -30,7 +30,7 @@
#define _DDB_DB_OUTPUT_H_
/*
- * Author: David B. Golub, Carnegie Mellon University
+ * Author: David B. Golub, Carnegie Mellon University
* Date: 8/90
*/
diff --git a/sys/ddb/db_print.c b/sys/ddb/db_print.c
index 6cffd6d..9e45456 100644
--- a/sys/ddb/db_print.c
+++ b/sys/ddb/db_print.c
@@ -25,7 +25,7 @@
*
*/
/*
- * Author: David B. Golub, Carnegie Mellon University
+ * Author: David B. Golub, Carnegie Mellon University
* Date: 7/90
*/
diff --git a/sys/ddb/db_ps.c b/sys/ddb/db_ps.c
index 81e141e..d28a060 100644
--- a/sys/ddb/db_ps.c
+++ b/sys/ddb/db_ps.c
@@ -155,7 +155,7 @@ db_ps(db_expr_t addr, boolean_t hasaddr, db_expr_t count, char *modif)
else if (wflag)
state[0] = 'W';
else
- state[0] = '?';
+ state[0] = '?';
}
break;
case PRS_NEW:
@@ -211,7 +211,7 @@ db_ps(db_expr_t addr, boolean_t hasaddr, db_expr_t count, char *modif)
p = LIST_NEXT(p, p_list);
if (p == NULL && np > 0)
p = LIST_FIRST(&zombproc);
- }
+ }
}
static void
diff --git a/sys/ddb/db_run.c b/sys/ddb/db_run.c
index 897dc3d..ce6704b 100644
--- a/sys/ddb/db_run.c
+++ b/sys/ddb/db_run.c
@@ -54,7 +54,7 @@ static int db_run_mode;
#define STEP_RETURN 2
#define STEP_CALLT 3
#define STEP_CONTINUE 4
-#define STEP_INVISIBLE 5
+#define STEP_INVISIBLE 5
#define STEP_COUNT 6
static boolean_t db_sstep_print;
diff --git a/sys/ddb/db_sym.h b/sys/ddb/db_sym.h
index e68be1f..1d9d462 100644
--- a/sys/ddb/db_sym.h
+++ b/sys/ddb/db_sym.h
@@ -30,7 +30,7 @@
#define _DDB_DB_SYM_H_
/*
- * Author: Alessandro Forin, Carnegie Mellon University
+ * Author: Alessandro Forin, Carnegie Mellon University
* Date: 8/90
*/
diff --git a/sys/ddb/db_textdump.c b/sys/ddb/db_textdump.c
index e664870..b4b040b 100644
--- a/sys/ddb/db_textdump.c
+++ b/sys/ddb/db_textdump.c
@@ -348,8 +348,8 @@ textdump_dump_msgbuf(struct dumperinfo *di)
*/
total_len = 0;
offset = 0;
- msgbuf_peekbytes(msgbufp, NULL, 0, &seq);
- while ((len = msgbuf_peekbytes(msgbufp, buf, sizeof(buf), &seq)) > 0) {
+ msgbuf_peekbytes(msgbufp, NULL, 0, &seq);
+ while ((len = msgbuf_peekbytes(msgbufp, buf, sizeof(buf), &seq)) > 0) {
for (i = 0; i < len; i++) {
if (buf[i] == '\0')
continue;
@@ -362,7 +362,7 @@ textdump_dump_msgbuf(struct dumperinfo *di)
total_len += offset;
offset = 0;
}
- }
+ }
total_len += offset; /* Without the zero-padding. */
if (offset != 0) {
bzero(textdump_block_buffer + offset,
diff --git a/sys/ddb/db_variables.h b/sys/ddb/db_variables.h
index 2866cd0..1cbc481 100644
--- a/sys/ddb/db_variables.h
+++ b/sys/ddb/db_variables.h
@@ -27,7 +27,7 @@
*/
/*
- * Author: David B. Golub, Carnegie Mellon University
+ * Author: David B. Golub, Carnegie Mellon University
* Date: 7/90
*/
diff --git a/sys/ddb/db_watch.c b/sys/ddb/db_watch.c
index b2be970..44ca191 100644
--- a/sys/ddb/db_watch.c
+++ b/sys/ddb/db_watch.c
@@ -303,8 +303,8 @@ db_deletehwatch_cmd(addr, have_addr, count, modif)
{
int rc;
- if (count < 0)
- count = 4;
+ if (count < 0)
+ count = 4;
rc = db_md_clr_watchpoint(addr, count);
if (rc < 0)
@@ -322,8 +322,8 @@ db_hwatchpoint_cmd(addr, have_addr, count, modif)
{
int rc;
- if (count < 0)
- count = 4;
+ if (count < 0)
+ count = 4;
rc = db_md_set_watchpoint(addr, count);
if (rc < 0)
diff --git a/sys/ddb/db_watch.h b/sys/ddb/db_watch.h
index 7c48ce8..d4fdfc8 100644
--- a/sys/ddb/db_watch.h
+++ b/sys/ddb/db_watch.h
@@ -27,7 +27,7 @@
*/
/*
- * Author: David B. Golub, Carnegie Mellon University
+ * Author: David B. Golub, Carnegie Mellon University
* Date: 10/90
*/
OpenPOWER on IntegriCloud