]> git.sur5r.net Git - u-boot/commitdiff
rockchip: puma_rk3399: increase serialno_str size
authorKlaus Goger <klaus.goger@theobroma-systems.com>
Fri, 15 Sep 2017 12:46:04 +0000 (14:46 +0200)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Mon, 18 Sep 2017 18:40:38 +0000 (20:40 +0200)
Increase serialno_str to 17 bytes so it can hold the 16 bytes long serial
nummer and the terminating null byte added by snprintf.

Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
board/theobroma-systems/puma_rk3399/puma-rk3399.c

index c6f8eed0c98821ab10941cfecc02ae994986bdae..45d56cd99eb26adb15edfff8572e9ee9998972ce 100644 (file)
@@ -107,7 +107,7 @@ static void setup_serial(void)
        u8 low[cpuid_length/2], high[cpuid_length/2];
        char cpuid_str[cpuid_length * 2 + 1];
        u64 serialno;
-       char serialno_str[16];
+       char serialno_str[17];
 
        /* retrieve the device */
        ret = uclass_get_device_by_driver(UCLASS_MISC,