Fri Oct 30 16:29:49 2020 UTC ()
Remove "also;"


(skrll)
diff -r1.174 -r1.175 src/sys/ddb/db_command.c

cvs diff -r1.174 -r1.175 src/sys/ddb/db_command.c (expand / switch to unified diff)

--- src/sys/ddb/db_command.c 2020/10/30 16:08:44 1.174
+++ src/sys/ddb/db_command.c 2020/10/30 16:29:49 1.175
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: db_command.c,v 1.174 2020/10/30 16:08:44 skrll Exp $ */ 1/* $NetBSD: db_command.c,v 1.175 2020/10/30 16:29:49 skrll Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1996, 1997, 1998, 1999, 2002, 2009, 2019 4 * Copyright (c) 1996, 1997, 1998, 1999, 2002, 2009, 2019
5 * The NetBSD Foundation, Inc. 5 * The NetBSD Foundation, Inc.
6 * All rights reserved. 6 * All rights reserved.
7 * 7 *
8 * This code is derived from software contributed to The NetBSD Foundation 8 * This code is derived from software contributed to The NetBSD Foundation
9 * by Adam Hamsik, and by Andrew Doran. 9 * by Adam Hamsik, and by Andrew Doran.
10 * 10 *
11 * Redistribution and use in source and binary forms, with or without 11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions 12 * modification, are permitted provided that the following conditions
13 * are met: 13 * are met:
14 * 1. Redistributions of source code must retain the above copyright 14 * 1. Redistributions of source code must retain the above copyright
@@ -51,27 +51,27 @@ @@ -51,27 +51,27 @@
51 * School of Computer Science 51 * School of Computer Science
52 * Carnegie Mellon University 52 * Carnegie Mellon University
53 * Pittsburgh PA 15213-3890 53 * Pittsburgh PA 15213-3890
54 * 54 *
55 * any improvements or extensions that they make and grant Carnegie the 55 * any improvements or extensions that they make and grant Carnegie the
56 * rights to redistribute these changes. 56 * rights to redistribute these changes.
57 */ 57 */
58 58
59/* 59/*
60 * Command dispatcher. 60 * Command dispatcher.
61 */ 61 */
62 62
63#include <sys/cdefs.h> 63#include <sys/cdefs.h>
64__KERNEL_RCSID(0, "$NetBSD: db_command.c,v 1.174 2020/10/30 16:08:44 skrll Exp $"); 64__KERNEL_RCSID(0, "$NetBSD: db_command.c,v 1.175 2020/10/30 16:29:49 skrll Exp $");
65 65
66#ifdef _KERNEL_OPT 66#ifdef _KERNEL_OPT
67#include "opt_aio.h" 67#include "opt_aio.h"
68#include "opt_ddb.h" 68#include "opt_ddb.h"
69#include "opt_fdt.h" 69#include "opt_fdt.h"
70#include "opt_kgdb.h" 70#include "opt_kgdb.h"
71#include "opt_mqueue.h" 71#include "opt_mqueue.h"
72#include "opt_inet.h" 72#include "opt_inet.h"
73#include "opt_kernhist.h" 73#include "opt_kernhist.h"
74#include "opt_ddbparam.h" 74#include "opt_ddbparam.h"
75#include "opt_multiprocessor.h" 75#include "opt_multiprocessor.h"
76#endif 76#endif
77 77
@@ -1364,27 +1364,26 @@ db_show_lockstats(db_expr_t addr, bool h @@ -1364,27 +1364,26 @@ db_show_lockstats(db_expr_t addr, bool h
1364static void 1364static void
1365db_fdt_print_cmd(db_expr_t addr, bool have_addr, 1365db_fdt_print_cmd(db_expr_t addr, bool have_addr,
1366 db_expr_t count, const char *modif) 1366 db_expr_t count, const char *modif)
1367{ 1367{
1368#ifdef _KERNEL /* XXX CRASH(8) */ 1368#ifdef _KERNEL /* XXX CRASH(8) */
1369 bool full = false; 1369 bool full = false;
1370 1370
1371 if (modif[0] == 'f') 1371 if (modif[0] == 'f')
1372 full = true; 1372 full = true;
1373 1373
1374 fdt_print(have_addr ? (void *)(uintptr_t)addr : fdtbus_get_data(), 1374 fdt_print(have_addr ? (void *)(uintptr_t)addr : fdtbus_get_data(),
1375 full, db_printf); 1375 full, db_printf);
1376#else 1376#else
1377 also; 
1378 db_kernelonly(); 1377 db_kernelonly();
1379#endif 1378#endif
1380} 1379}
1381#endif 1380#endif
1382 1381
1383/* 1382/*
1384 * Call random function: 1383 * Call random function:
1385 * !expr(arg,arg,arg) 1384 * !expr(arg,arg,arg)
1386 */ 1385 */
1387/*ARGSUSED*/ 1386/*ARGSUSED*/
1388static void 1387static void
1389db_fncall(db_expr_t addr, bool have_addr, 1388db_fncall(db_expr_t addr, bool have_addr,
1390 db_expr_t count, const char *modif) 1389 db_expr_t count, const char *modif)