X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-uboot.git;a=blobdiff_plain;f=common%2Fstdio.c;h=9f48e5f5034da70cda786d8569a7287780868c9c;hp=b20772c45d7f05d550a358fcbf1755c501e6e5b9;hb=98ab435f736f24b503c8a9dbacc3ee1556a58106;hpb=d7be3056def73c0ab53b3907f9a70a73253a5ae9 diff --git a/common/stdio.c b/common/stdio.c index b20772c45d..9f48e5f503 100644 --- a/common/stdio.c +++ b/common/stdio.c @@ -160,7 +160,7 @@ int stdio_deregister(const char *devname) int l; struct list_head *pos; struct stdio_dev *dev; - char temp_names[3][8]; + char temp_names[3][16]; dev = stdio_get_by_name(devname); @@ -174,7 +174,7 @@ int stdio_deregister(const char *devname) } memcpy (&temp_names[l][0], stdio_devices[l]->name, - sizeof(stdio_devices[l]->name)); + sizeof(temp_names[l])); } list_del(&(dev->list)); @@ -227,9 +227,7 @@ int stdio_init (void) drv_logbuff_init (); #endif drv_system_init (); -#ifdef CONFIG_SERIAL_MULTI serial_stdio_init (); -#endif #ifdef CONFIG_USB_TTY drv_usbtty_init (); #endif @@ -239,6 +237,8 @@ int stdio_init (void) #ifdef CONFIG_JTAG_CONSOLE drv_jtag_console_init (); #endif - +#ifdef CONFIG_CBMEM_CONSOLE + cbmemc_init(); +#endif return (0); }