[U-Boot] [PATCH] stdio: extend "name" to 32 symbols

With limit of 16 symbols very simple device names derived drom device tree description could not be displayed correctly.
For example "serial0@0xc0fc1000" will be truncated to sensless "serial0@0xc0fc10" - note dropped tariling zeros.
Signed-off-by: Alexey Brodkin abrodkin@synopsys.com Cc: Simon Glass sjg@chromium.org Cc: Tom Rini trini@ti.com --- include/stdio_dev.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/stdio_dev.h b/include/stdio_dev.h index 24da23f..95d6246 100644 --- a/include/stdio_dev.h +++ b/include/stdio_dev.h @@ -23,7 +23,7 @@ struct stdio_dev { int flags; /* Device flags: input/output/system */ int ext; /* Supported extensions */ - char name[16]; /* Device name */ + char name[32]; /* Device name */
/* GENERAL functions */

On 25 February 2015 at 11:26, Alexey Brodkin Alexey.Brodkin@synopsys.com wrote:
With limit of 16 symbols very simple device names derived drom device tree description could not be displayed correctly.
For example "serial0@0xc0fc1000" will be truncated to sensless "serial0@0xc0fc10" - note dropped tariling zeros.
trailing
Signed-off-by: Alexey Brodkin abrodkin@synopsys.com Cc: Simon Glass sjg@chromium.org Cc: Tom Rini trini@ti.com
Reviewed-by: Simon Glass sjg@chromium.org
include/stdio_dev.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/stdio_dev.h b/include/stdio_dev.h index 24da23f..95d6246 100644 --- a/include/stdio_dev.h +++ b/include/stdio_dev.h @@ -23,7 +23,7 @@ struct stdio_dev { int flags; /* Device flags: input/output/system */ int ext; /* Supported extensions */
char name[16]; /* Device name */
char name[32]; /* Device name */
/* GENERAL functions */
-- 2.1.0
participants (2)
-
Alexey Brodkin
-
Simon Glass