Skip to content

Commit d346eb5

Browse files
clarify printf format
The intent behind "resolvable at compile time" is that format cannot be a kernel argument, i.e. it can only be a string literal.
1 parent cb0f4f4 commit d346eb5

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

OpenCL_C.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9571,9 +9571,7 @@ The format is composed of zero or more directives: ordinary characters (not
95719571
specifications, each of which results in fetching zero or more subsequent
95729572
arguments, converting them, if applicable, according to the corresponding
95739573
conversion specifier, and then writing the result to the output stream.
9574-
The format is in the constant address space and must be resolvable at
9575-
compile time, i.e. cannot be dynamically created by the executing program
9576-
itself.
9574+
The format must be a string literal.
95779575

95789576
Each conversion specification is introduced by the character *%*.
95799577
After the *%*, the following appear in sequence:

0 commit comments

Comments
 (0)