From: Frank Ch. Eigler Date: Mon, 19 Oct 2009 17:53:33 +0000 (-0400) Subject: bemoan that _stp_*printf can't be protected with gcc attribute printf X-Git-Tag: release-1.0.9~83^2~31 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=892e5de27d2f275e2d7c2160d81fe9e0c87b1ee1;p=systemtap.git bemoan that _stp_*printf can't be protected with gcc attribute printf --- diff --git a/runtime/string.c b/runtime/string.c index cdafbf64f..b3f81f0e5 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