Spdk/test/unit/lib/util
Shuhei Matsumoto 8adbd90991 util/string: sprintf_append_realloc to concatenate strings with realloc
Appending string by using sprintf with realloc will be generally
usable and add sprintf_append_realloc() and vsprintf_append_realloc()
to the utility.

These APIs follow realloc about buffer management, i.e., the original
buffer is left untouched if they fail.

Besides, the original buffer is NULL, they are equivalent to
sprintf_alloc() and vsprintf_alloc(), respectively.

Change-Id: I8b69d9640e86e1862ddd3917995bad6f59426b7e
Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Signed-off-by: Chunyang Hui <chunyang.hui@intel.com>
Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
Reviewed-on: https://review.gerrithub.io/c/436913
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
2019-01-14 21:22:56 +00:00
..
base64.c build: remove duplicate spdk.app.mk includes 2018-12-11 18:07:53 +00:00
bit_array.c util: added bit array bitmask load, store and clear 2018-12-14 15:34:53 +00:00
cpuset.c util/cpuset: fix internal string buffer size 2019-01-12 11:19:12 +00:00
crc16.c util/crc16: Add spdk_crc16_t10dif_copy to use in read strip and write insert 2018-12-20 17:52:29 +00:00
crc32_ieee.c build: remove duplicate spdk.app.mk includes 2018-12-11 18:07:53 +00:00
crc32c.c build: remove duplicate spdk.app.mk includes 2018-12-11 18:07:53 +00:00
dif.c dif, dix: remove unnecessary _iov_iter_cont() check 2019-01-13 00:01:45 +00:00
string.c util/string: sprintf_append_realloc to concatenate strings with realloc 2019-01-14 21:22:56 +00:00
Makefile dif: Generate DIF for extended LBA payload 2018-12-20 17:52:29 +00:00