summaryrefslogtreecommitdiff
path: root/include/mysql/service_my_snprintf.h
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2015-12-18 13:18:35 +0100
committerSergei Golubchik <serg@mariadb.org>2015-12-19 13:59:29 +0100
commit7e8e83029f04a568bb0a85f7ffd573c178af4b81 (patch)
treec62644f3accfa3192aaf6d8916fac2e4f0e5a10d /include/mysql/service_my_snprintf.h
parent8d34a29663b985803677f1a1e9d9d1dd672eb103 (diff)
downloadmariadb-git-7e8e83029f04a568bb0a85f7ffd573c178af4b81.tar.gz
document %M format
Diffstat (limited to 'include/mysql/service_my_snprintf.h')
-rw-r--r--include/mysql/service_my_snprintf.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/mysql/service_my_snprintf.h b/include/mysql/service_my_snprintf.h
index d4ce97076e6..4a99561dd00 100644
--- a/include/mysql/service_my_snprintf.h
+++ b/include/mysql/service_my_snprintf.h
@@ -55,7 +55,7 @@
Supported formats are 's' (null pointer is accepted, printed as
"(null)"), 'b' (extension, see below), 'c', 'd', 'i', 'u', 'x', 'o',
- 'X', 'p' (works as 0x%x), 'f', 'g'.
+ 'X', 'p' (works as 0x%x), 'f', 'g', 'M' (extension, see below).
Standard syntax for positional arguments $n is supported.
@@ -65,6 +65,10 @@
Format 'b': binary buffer, prints exactly <precision> bytes from the
argument, without stopping at '\0'.
+
+ Format 'M': takes one integer, prints this integer, space, double quote
+ error message, double quote. In other words
+ printf("%M", n) === printf("%d \"%s\"", n, strerror(n))
*/
#ifdef __cplusplus