summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2009-10-19 13:53:33 -0400
committerFrank Ch. Eigler <fche@elastic.org>2009-10-19 13:53:33 -0400
commit892e5de27d2f275e2d7c2160d81fe9e0c87b1ee1 (patch)
treea9de611150cbdd3934b89c2843141e871cad7770
parent4c84892cead59e568a83172e441a15713ae162ab (diff)
downloadsystemtap-steved-892e5de27d2f275e2d7c2160d81fe9e0c87b1ee1.tar.gz
systemtap-steved-892e5de27d2f275e2d7c2160d81fe9e0c87b1ee1.tar.xz
systemtap-steved-892e5de27d2f275e2d7c2160d81fe9e0c87b1ee1.zip
bemoan that _stp_*printf can't be protected with gcc attribute printf
-rw-r--r--runtime/string.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/string.c b/runtime/string.c
index cdafbf64..b3f81f0e 100644
--- a/runtime/string.c
+++ b/runtime/string.c
@@ -21,7 +21,11 @@
*/
/** Sprintf into a string.
- * Like printf, except output goes into a string.
+ * Like printf, except output goes into a string.
+ *
+ * NB: these are script language printf formatting directives, where
+ * %d ints are 64-bits etc, so we can't use gcc level attribute printf
+ * to type-check the arguments.
*
* @param str string
* @param fmt A printf-style format string followed by a