Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
78ee67fd
Commit
78ee67fd
authored
Sep 25, 2020
by
philip
Committed by
Marcel Stör
Nov 07, 2020
Browse files
Remove some uses of etc_*printf
parent
d1be80e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/include/user_mbedtls.h
View file @
78ee67fd
...
@@ -296,8 +296,8 @@ extern void mbedtls_free_wrap(void *p);
...
@@ -296,8 +296,8 @@ extern void mbedtls_free_wrap(void *p);
//#define MBEDTLS_PLATFORM_TIME_TYPE_MACRO time_t /**< Default time macro to use, can be undefined. MBEDTLS_HAVE_TIME must be enabled */
//#define MBEDTLS_PLATFORM_TIME_TYPE_MACRO time_t /**< Default time macro to use, can be undefined. MBEDTLS_HAVE_TIME must be enabled */
//#define MBEDTLS_PLATFORM_FPRINTF_MACRO fprintf /**< Default fprintf macro to use, can be undefined */
//#define MBEDTLS_PLATFORM_FPRINTF_MACRO fprintf /**< Default fprintf macro to use, can be undefined */
#define MBEDTLS_PLATFORM_PRINTF_MACRO ets_printf
/**< Default printf macro to use, can be undefined */
#define MBEDTLS_PLATFORM_PRINTF_MACRO ets_printf
/**< Default printf macro to use, can be undefined */
#define MBEDTLS_PLATFORM_SNPRINTF_MACRO ets_snprintf
/**< Default snprintf macro to use, can be undefined */
//
#define MBEDTLS_PLATFORM_SNPRINTF_MACRO ets_snprintf /**< Default snprintf macro to use, can be undefined */
#define MBEDTLS_PLATFORM_VSNPRINTF_MACRO ets_vsnprintf
/**< Default vsnprintf macro to use, can be undefined */
//
#define MBEDTLS_PLATFORM_VSNPRINTF_MACRO ets_vsnprintf /**< Default vsnprintf macro to use, can be undefined */
//#define MBEDTLS_PLATFORM_NV_SEED_READ_MACRO mbedtls_platform_std_nv_seed_read /**< Default nv_seed_read function to use, can be undefined */
//#define MBEDTLS_PLATFORM_NV_SEED_READ_MACRO mbedtls_platform_std_nv_seed_read /**< Default nv_seed_read function to use, can be undefined */
//#define MBEDTLS_PLATFORM_NV_SEED_WRITE_MACRO mbedtls_platform_std_nv_seed_write /**< Default nv_seed_write function to use, can be undefined */
//#define MBEDTLS_PLATFORM_NV_SEED_WRITE_MACRO mbedtls_platform_std_nv_seed_write /**< Default nv_seed_write function to use, can be undefined */
//#define MBEDTLS_SSL_CACHE_DEFAULT_TIMEOUT 86400 /**< 1 day */
//#define MBEDTLS_SSL_CACHE_DEFAULT_TIMEOUT 86400 /**< 1 day */
...
...
app/modules/net.c
View file @
78ee67fd
...
@@ -966,7 +966,7 @@ extern struct netif *eagle_lwip_getif(uint8);
...
@@ -966,7 +966,7 @@ extern struct netif *eagle_lwip_getif(uint8);
static
void
static
void
push_ipaddr
(
lua_State
*
L
,
ip_addr_t
*
addr
)
{
push_ipaddr
(
lua_State
*
L
,
ip_addr_t
*
addr
)
{
char
temp
[
20
];
char
temp
[
20
];
ssize_t
ipl
=
ets_
snprintf
(
temp
,
sizeof
temp
,
IPSTR
,
IP2STR
(
&
addr
->
addr
));
ssize_t
ipl
=
snprintf
(
temp
,
sizeof
temp
,
IPSTR
,
IP2STR
(
&
addr
->
addr
));
lua_assert
(
ipl
>=
0
&&
ipl
<
20
);
lua_assert
(
ipl
>=
0
&&
ipl
<
20
);
lua_pushlstring
(
L
,
temp
,
ipl
);
lua_pushlstring
(
L
,
temp
,
ipl
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment