Commit f5dd3579cf2d36156f5ec798217a2d7c28a8063c

Authored by Peng Fan
Committed by guoyin.chen
1 parent 722af7af28

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>

Showing 2 changed files with 6 additions and 2 deletions Side-by-side Diff

include/configs/mx6_common.h
1 1 /*
2   - * Copyright (C) 2012-2015 Freescale Semiconductor, Inc.
  2 + * Copyright (C) 2012-2016 Freescale Semiconductor, Inc.
3 3 * Copyright (c) 2013, NVIDIA CORPORATION. All rights reserved.
4 4 *
5 5 * This program is free software; you can redistribute it and/or modify it
... ... @@ -17,6 +17,8 @@
17 17  
18 18 #ifndef __MX6_COMMON_H
19 19 #define __MX6_COMMON_H
  20 +
  21 +#define CONFIG_SYS_VSNPRINTF
20 22  
21 23 #ifndef CONFIG_MX6UL
22 24 #define CONFIG_ARM_ERRATA_743622
include/configs/mx7_common.h
1 1 /*
2   - * Copyright (C) 2014-2015 Freescale Semiconductor, Inc.
  2 + * Copyright (C) 2014-2016 Freescale Semiconductor, Inc.
3 3 *
4 4 * Configuration settings for the Freescale i.MX7.
5 5 *
... ... @@ -9,6 +9,8 @@
9 9  
10 10 #ifndef __MX7_COMMON_H
11 11 #define __MX7_COMMON_H
  12 +
  13 +#define CONFIG_SYS_VSNPRINTF
12 14  
13 15 #define CONFIG_BOARD_POSTCLK_INIT
14 16 #define CONFIG_MXC_GPT_HCLK