Skip to contentSkip to conversation

stdio: extend "name" to 32 symbols

PATCH New Alexey Brodkin 2 participants 2 messages Feb 25, 2015 – Feb 26, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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 at 0xc0fc1000" will be truncated to sensless "serial0 at 0xc0fc10" - note dropped tariling zeros.

---
 include/stdio_dev.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/stdio_dev.h +1 -1
index 24da23f..95d6246 100644
@@ -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 */
 
Signature · 1 line
2.1.0
#1 lore raw

PATCH 1/1 stdio: extend "name" to 32 symbols

Quoted 5 lines · Alexey Brodkin

With limit of 16 symbols very simple device names derived drom device tree description could not be displayed correctly.

For example "serial0 at 0xc0fc1000" will be truncated to sensless "serial0 at 0xc0fc10" - note dropped tariling zeros.

trailing

Quoted 4 lines
Quoted 20 lines
---
 include/stdio_dev.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/stdio_dev.h +1 -2
index 24da23f..95d6246 100644
@@ -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