aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc/support/string_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/grpc/support/string_util.h')
-rw-r--r--include/grpc/support/string_util.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/grpc/support/string_util.h b/include/grpc/support/string_util.h
index f981bc0db0..952cbfc26b 100644
--- a/include/grpc/support/string_util.h
+++ b/include/grpc/support/string_util.h
@@ -54,7 +54,8 @@ GPRAPI char *gpr_strdup(const char *src);
On error, returns -1 and sets *strp to NULL. If the format string is bad,
the result is undefined. */
-GPRAPI int gpr_asprintf(char **strp, const char *format, ...);
+GPRAPI int gpr_asprintf(char **strp, const char *format, ...)
+ GPRC_PRINT_FORMAT_CHECK(2, 3);
#ifdef __cplusplus
}