Skip to content

Commit

Permalink
rockchip: puma_rk3399: increase serialno_str size
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
kgoger authored and Philipp Tomsich committed Sep 18, 2017
1 parent 6e5bd8d commit 60d7c50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion board/theobroma-systems/puma_rk3399/puma-rk3399.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 60d7c50

Please sign in to comment.