mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 06:42:32 +08:00
Restore lib_sprintf(). It was removed because I thought was not used. But I was wrong; there is logic in drivers/syslog that depends on lib_sprintf().
This commits reverts a part of commit c271151d57. That commit also removed lib_sscanf() which really is not needed.
This commit is contained in:
@@ -442,6 +442,17 @@ int lib_noflush(FAR struct lib_outstream_s *stream);
|
||||
|
||||
int lib_snoflush(FAR struct lib_sostream_s *this);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: lib_sprintf
|
||||
*
|
||||
* Description:
|
||||
* Stream-oriented implementation of sprintf. Used only by the SYSLOG.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
int lib_sprintf(FAR struct lib_outstream_s *obj,
|
||||
FAR const IPTR char *fmt, ...);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: lib_vsprintf
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user