
SYS_vprintf
2-462
C Interface
Syntax
SYS_vprintf(format, vargs);
Parameters
String
format;
/* format specification string */
va_list
vargs;
/* variable argument list reference */
Return Value
Void
Description
SYS_vprintf provides a subset of the capabilities found in the standard C
library function printf.
Note:
SYS_vprintf and the related functions are code-intensive. If possible,
applications should use LOG Module functions to reduce code size and
execution time.
Conversion specifications begin with a % and end with a conversion
character. The conversion characters recognized by SYS_vprintf are
limited to the characters in Table 2-9.
Table 2-9.
Conversion Characters Recognized by SYS_vprintf
Note that the %f conversion character is supported only on devices that
have a native floating point type (for example, the ’C67x).
SYS_vprintf
Output formatted data
Character
Corresponding Output Format
d
signed decimal integer
u
unsigned decimal integer
o
octal integer
x
hexadecimal integer
c
single character
s
NULL-terminated string
p
data pointer