forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-02-19 1c055e55a242a33e574e48be530e06770a210dcd
kernel/drivers/tty/serial/kgdb_nmi.c
....@@ -50,7 +50,7 @@
5050 * I/O utilities that messages sent to the console will automatically
5151 * be displayed on the dbg_io.
5252 */
53
- dbg_io_ops->is_console = true;
53
+ dbg_io_ops->cons = co;
5454
5555 return 0;
5656 }
....@@ -118,7 +118,7 @@
118118 int c = -1;
119119 const char *magic = kgdb_nmi_magic;
120120 size_t m = strlen(magic);
121
- bool printch = 0;
121
+ bool printch = false;
122122
123123 c = dbg_io_ops->read_char();
124124 if (c == NO_POLL_CHAR)
....@@ -130,7 +130,7 @@
130130 n = (n + 1) % m;
131131 if (!n)
132132 return 1;
133
- printch = 1;
133
+ printch = true;
134134 } else {
135135 n = 0;
136136 }