summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2016-01-14 17:23:36 +0800
committerfang hui <hui.fang@freescale.com>2016-03-16 13:48:16 +0800
commit4f2268b4085b2e6817d6d6c10f49de355921ebc5 (patch)
tree9b4dc0d9f4377312445136fe84726ad17954bd78
parent1181d2c2dbc6b6f4251d5cd85f35fe9fdf641d93 (diff)
downloadu-boot-imx-4f2268b4085b2e6817d6d6c10f49de355921ebc5.zip
u-boot-imx-4f2268b4085b2e6817d6d6c10f49de355921ebc5.tar.gz
u-boot-imx-4f2268b4085b2e6817d6d6c10f49de355921ebc5.tar.bz2
MLK-12195 imx: mx6/7 define CONFIG_SYS_VSNPRINTF
Define CONFIG_SYS_VSNPRINTF to use snprintf, but not sprintf. Coverity ID: 17926. Signed-off-by: Peng Fan <peng.fan@nxp.com>
-rw-r--r--include/configs/mx6_common.h4
-rw-r--r--include/configs/mx7_common.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/include/configs/mx6_common.h b/include/configs/mx6_common.h
index 819867e..176ec92 100644
--- a/include/configs/mx6_common.h
+++ b/include/configs/mx6_common.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2012-2015 Freescale Semiconductor, Inc.
+ * Copyright (C) 2012-2016 Freescale Semiconductor, Inc.
* Copyright (c) 2013, NVIDIA CORPORATION. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
@@ -18,6 +18,8 @@
#ifndef __MX6_COMMON_H
#define __MX6_COMMON_H
+#define CONFIG_SYS_VSNPRINTF
+
#ifndef CONFIG_MX6UL
#define CONFIG_ARM_ERRATA_743622
#if (defined(CONFIG_MX6QP) || defined(CONFIG_MX6Q) ||\
diff --git a/include/configs/mx7_common.h b/include/configs/mx7_common.h
index 8aa7b49..ad3c005 100644
--- a/include/configs/mx7_common.h
+++ b/include/configs/mx7_common.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2014-2015 Freescale Semiconductor, Inc.
+ * Copyright (C) 2014-2016 Freescale Semiconductor, Inc.
*
* Configuration settings for the Freescale i.MX7.
*
@@ -10,6 +10,8 @@
#ifndef __MX7_COMMON_H
#define __MX7_COMMON_H
+#define CONFIG_SYS_VSNPRINTF
+
#define CONFIG_BOARD_POSTCLK_INIT
#define CONFIG_MXC_GPT_HCLK