forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/arch/x86/boot/early_serial_console.c
....@@ -50,7 +50,7 @@
5050 int pos = 0;
5151 int port = 0;
5252
53
- if (cmdline_find_option("earlyprintk", arg, sizeof arg) > 0) {
53
+ if (cmdline_find_option("earlyprintk", arg, sizeof(arg)) > 0) {
5454 char *e;
5555
5656 if (!strncmp(arg, "serial", 6)) {
....@@ -124,7 +124,7 @@
124124 * console=uart8250,io,0x3f8,115200n8
125125 * need to make sure it is last one console !
126126 */
127
- if (cmdline_find_option("console", optstr, sizeof optstr) <= 0)
127
+ if (cmdline_find_option("console", optstr, sizeof(optstr)) <= 0)
128128 return;
129129
130130 options = optstr;