Alias ets_printf directly to printf at link time
I thought maybe ets_printf had some special properties, but it doesn't seem to have any so far.
This commit is contained in:
parent
2e51f7b164
commit
b7b16de429
2 changed files with 3 additions and 13 deletions
|
@ -13,16 +13,3 @@ void *zalloc(size_t nbytes)
|
||||||
{
|
{
|
||||||
return calloc(1, nbytes);
|
return calloc(1, nbytes);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* this is currently just a stub to see where in the SDK it gets
|
|
||||||
called, and with what arguments...
|
|
||||||
|
|
||||||
In the binary SDK printf & ets_printf are aliased together, most
|
|
||||||
references appear to be to printf but libphy, libwpa & libnet80211
|
|
||||||
all call ets_printf sometimes... Seems to not be in common code
|
|
||||||
paths, haven't investigated exactly where.
|
|
||||||
*/
|
|
||||||
int ets_printf(const char *format, ...) {
|
|
||||||
return printf("ets_printf format=%s\r\n", format);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,9 @@ _lock_try_acquire_recursive = vPortEnterCritical;
|
||||||
_lock_release = vPortExitCritical;
|
_lock_release = vPortExitCritical;
|
||||||
_lock_release_recursive = vPortExitCritical;
|
_lock_release_recursive = vPortExitCritical;
|
||||||
|
|
||||||
|
/* SDK compatibility */
|
||||||
|
ets_printf = printf;
|
||||||
|
|
||||||
/* Linker Script for ld -N */
|
/* Linker Script for ld -N */
|
||||||
MEMORY
|
MEMORY
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue