We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1b6fc1 commit b0c556fCopy full SHA for b0c556f
components/drivers/ofw/fdt.c
@@ -692,7 +692,11 @@ rt_err_t rt_fdt_scan_chosen_stdout(void)
692
693
if (*options)
694
{
695
+ int type_len_no_option;
696
+
697
type_len = strchrnul(options, ',') - options;
698
+ type_len_no_option = strchrnul(options, ' ') - options;
699
+ type_len = rt_min(type_len, type_len_no_option);
700
}
701
702
@@ -795,6 +799,10 @@ rt_err_t rt_fdt_scan_chosen_stdout(void)
795
799
LOG_I("Earlycon: %s at MMIO/PIO %p (options '%s')",
796
800
con_type, fdt_earlycon.mmio, fdt_earlycon.options);
797
801
802
+ else if (con_type)
803
+ {
804
+ LOG_I("Earlycon: %s (options '%s')", con_type, fdt_earlycon.options);
805
+ }
798
806
807
return err;
808
0 commit comments