From 2ec6defdae3a0ce08af5db1796c4ea7f487c6384 Mon Sep 17 00:00:00 2001 From: Marek Szyprowski Date: Tue, 17 Nov 2020 11:06:45 +0100 Subject: [PATCH] tizen: amlogic: move trailing '\0' to the common place To make the env setup a bit more error proof, move the required trailing '\0' character for the 'boot_prefixes' entry to the common place. Signed-off-by: Marek Szyprowski Change-Id: I535afa0a870b07a9d8637add8cccb8d55bcca5a0 --- include/samsung/tizen_amlogic.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/samsung/tizen_amlogic.h b/include/samsung/tizen_amlogic.h index 64d7422..0382ef9 100644 --- a/include/samsung/tizen_amlogic.h +++ b/include/samsung/tizen_amlogic.h @@ -93,13 +93,13 @@ #endif #ifdef CONFIG_TIZEN_KHADAS_VIM3 -#define TIZEN_BOOT_PREFIX "/vim3/ /\0" +#define TIZEN_BOOT_PREFIX "/vim3/ /" #elif CONFIG_TIZEN_ODROID_N2 -#define TIZEN_BOOT_PREFIX "/odroid-n2/ /\0" +#define TIZEN_BOOT_PREFIX "/odroid-n2/ /" #elif CONFIG_TIZEN_ODROID_C4 -#define TIZEN_BOOT_PREFIX "/odroid-c4/ /\0" +#define TIZEN_BOOT_PREFIX "/odroid-c4/ /" #else -#define TIZEN_BOOT_PREFIX "/ /boot/\0" +#define TIZEN_BOOT_PREFIX "/ /boot/" #endif #define TIZEN_ENV_SETTING \ @@ -124,7 +124,7 @@ "opts=loglevel=4\0" \ "dfu_usb_con=0\0" \ "dfu_interface=mmc\0" \ - "boot_prefixes="TIZEN_BOOT_PREFIX \ + "boot_prefixes=" TIZEN_BOOT_PREFIX "\0" #define CONFIG_TIZEN -- 2.7.4