diff options
author | 2012-07-09 18:22:08 +0000 | |
---|---|---|
committer | 2012-07-09 18:22:08 +0000 | |
commit | 3a67a668dbdc3a6bba68700a6dfdef8164ae0c69 (patch) | |
tree | 388f4b98ae3b4d4a4fbe0069a38c5eccdb79464f /experimental/Debugger | |
parent | 1dcfa1fcbdf8710394625a743c7ffd40633d7eb5 (diff) |
Add an SK_PRINTF_LIKE macro, which declares a function to have printf-like
semantics, allowing gcc and clang to check the format string against the
arguments. Enable its use on SkString (printf, appendf, and prependf). Also
define an SK_SIZE_T_SPECIFIER macro so there's a cross-platform way of
printing a size_t.
Review URL: http://codereview.appspot.com/6375043/
git-svn-id: http://skia.googlecode.com/svn/trunk@4485 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'experimental/Debugger')
-rw-r--r-- | experimental/Debugger/SkDebugDumper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/experimental/Debugger/SkDebugDumper.cpp b/experimental/Debugger/SkDebugDumper.cpp index 64ac2eb459..69b1896626 100644 --- a/experimental/Debugger/SkDebugDumper.cpp +++ b/experimental/Debugger/SkDebugDumper.cpp @@ -28,7 +28,7 @@ SkDebugDumper::SkDebugDumper(SkEventSinkID cID, SkEventSinkID clID, static void appendPtr(SkString* str, const void* ptr, const char name[]) { if (ptr) { - str->appendf("$s: %p\t", name, ptr); + str->appendf("%s: %p\t", name, ptr); } } |