Skip to content

Commit

Permalink
ddb: space/tab fixes.
Browse files Browse the repository at this point in the history
No functional change.

MFC after:	3 days
  • Loading branch information
pgiffuni committed Oct 11, 2014
1 parent d0d8c13 commit 1549fb2
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 19 deletions.
6 changes: 3 additions & 3 deletions sys/ddb/db_break.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,21 +161,21 @@ 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)); \
} while (0)
#endif

#ifndef BKPT_CLEAR
#define BKPT_CLEAR(addr, storage) \
#define BKPT_CLEAR(addr, storage) \
db_put_value(addr, BKPT_SIZE, *storage)
#endif

Expand Down
2 changes: 1 addition & 1 deletion sys/ddb/db_command.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion sys/ddb/db_output.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/

Expand Down
2 changes: 1 addition & 1 deletion sys/ddb/db_print.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*
*/
/*
* Author: David B. Golub, Carnegie Mellon University
* Author: David B. Golub, Carnegie Mellon University
* Date: 7/90
*/

Expand Down
4 changes: 2 additions & 2 deletions sys/ddb/db_ps.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion sys/ddb/db_run.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion sys/ddb/db_sym.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#define _DDB_DB_SYM_H_

/*
* Author: Alessandro Forin, Carnegie Mellon University
* Author: Alessandro Forin, Carnegie Mellon University
* Date: 8/90
*/

Expand Down
6 changes: 3 additions & 3 deletions sys/ddb/db_textdump.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion sys/ddb/db_variables.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
*/

/*
* Author: David B. Golub, Carnegie Mellon University
* Author: David B. Golub, Carnegie Mellon University
* Date: 7/90
*/

Expand Down
8 changes: 4 additions & 4 deletions sys/ddb/db_watch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion sys/ddb/db_watch.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
*/

/*
* Author: David B. Golub, Carnegie Mellon University
* Author: David B. Golub, Carnegie Mellon University
* Date: 10/90
*/

Expand Down

0 comments on commit 1549fb2

Please sign in to comment.