mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
MDEV-22545: my_vsnprintf behaves not as in C standard
Added parameter %T for string which should be visibly truncated.
This commit is contained in:
@@ -55,7 +55,8 @@
|
||||
|
||||
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', 'M' (extension, see below).
|
||||
'X', 'p' (works as 0x%x), 'f', 'g', 'M' (extension, see below),
|
||||
'T' (extension, see below).
|
||||
|
||||
Standard syntax for positional arguments $n is supported.
|
||||
|
||||
@@ -69,6 +70,9 @@
|
||||
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))
|
||||
|
||||
Format 'T': takes string and print it like s but if the strints should be
|
||||
truncated puts "..." at the end.
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
Reference in New Issue
Block a user