SYS_printf
2-458
C Interface
Syntax
SYS_printf(format, [arg,] ...);
Parameters
String
format;
/* format specification string */
Arg
arg;
/* optional argument */
Return Value
Void
Description
SYS_printf provides a subset of the capabilities found in the standard C
library function printf.
Note:
SYS_printf and the related functions are code-intensive. If possible,
applications should use the 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_printf are
limited to the characters shown in Table 2-7.
Table 2-7.
Conversion Characters Recognized by SYS_printf
Note that the %f conversion character is supported only on devices that
have a native floating point type (for example, the ’C67x).
Between the % and the conversion character, the following symbols or
specifiers contained in square brackets can appear, in the order shown.
%[-][0][width]type
SYS_printf
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