mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-16 21:28:33 +03:00
assert: Use printf_sync() to ensure printing of assert / panic
Change-Id: Icc202e60445d9be1cdcd61176db5ed1704d583e7
This commit is contained in:
@@ -13,6 +13,20 @@
|
||||
#define PHONE_INT 2
|
||||
#define PHONE_DATAOUT 3
|
||||
|
||||
/* stub for stdio */
|
||||
signed int printf_sync(const char *pFormat, ...)
|
||||
{
|
||||
va_list ap;
|
||||
signed int result;
|
||||
|
||||
va_start(ap, pFormat);
|
||||
result = vprintf(pFormat, ap);
|
||||
va_end(ap);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
* stub functions required by card_emu.c
|
||||
***********************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user