]> git.proxmox.com Git - qemu.git/commitdiff
trace: Format strings must begin/end with double quotes
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Wed, 20 Oct 2010 16:41:31 +0000 (16:41 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Wed, 20 Oct 2010 16:41:31 +0000 (16:41 +0000)
Document the restriction that format strings must begin and end with
double quotes.  This is for easy parsing since we don't run cpp over
trace-events.

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
docs/tracing.txt

index 5504850857607aadf43c4859b71a25d2d84b7d92..963c5047fe48d019e1d01c729e8cd09eb6c69ea2 100644 (file)
@@ -74,7 +74,10 @@ Trace events should use types as follows:
 
 Format strings should reflect the types defined in the trace event.  Take
 special care to use PRId64 and PRIu64 for int64_t and uint64_t types,
-respectively.  This ensures portability between 32- and 64-bit platforms.
+respectively.  This ensures portability between 32- and 64-bit platforms.  Note
+that format strings must begin and end with double quotes.  When using
+portability macros, ensure they are preceded and followed by double quotes:
+"value %"PRIx64"".
 
 === Hints for adding new trace events ===