From 92002b1ad129a19fe3e0db1d1b77cb2d9a713edc Mon Sep 17 00:00:00 2001 From: pvvx Date: Wed, 15 Feb 2017 22:09:00 +0300 Subject: [PATCH] fix printf ret size --- .../component/common/api/platform/stdlib_patch.c | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/RTL00_SDKV35a/component/common/api/platform/stdlib_patch.c b/RTL00_SDKV35a/component/common/api/platform/stdlib_patch.c index c4e2ea5..1cf8487 100644 --- a/RTL00_SDKV35a/component/common/api/platform/stdlib_patch.c +++ b/RTL00_SDKV35a/component/common/api/platform/stdlib_patch.c @@ -712,11 +712,6 @@ Exit: } - - - - - /*********************************************************/ static int VSprintfPatch(char *buf, const char *fmt, const int *dp) @@ -899,20 +894,18 @@ static int VSprintfPatch(char *buf, const char *fmt, const int *dp) } -u32 DiagPrintfPatch( +int DiagPrintfPatch( IN const char *fmt, ... ) { - (void)VSprintfPatch(0, fmt, ((const int *)&fmt)+1); - return 1; + return VSprintfPatch(0, fmt, ((const int *)&fmt)+1); } -u32 DiagSPrintfPatch( +int DiagSPrintfPatch( IN u8 *buf, IN const char *fmt, ... ) { - (void)VSprintfPatch((char*)buf, fmt, ((const int *)&fmt)+1); - return 1; + return VSprintfPatch((char*)buf, fmt, ((const int *)&fmt)+1); } #endif