1 test_basic_printbuf_memset: starting test 2 Buffer contents:blue:1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 3 test_basic_printbuf_memset: end test 4 ======================================== 5 test_printbuf_memset_length: starting test 6 Buffer length: 0 7 Buffer length: 12 8 Buffer length: 18 9 Buffer length: 76 10 Buffer length: 76 11 Buffer length: 77 12 test_printbuf_memset_length: end test 13 ======================================== 14 test_printbuf_memappend: starting test 15 Buffer length: 0 16 Appended 32 bytes for resize: [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] 17 Partial append: 3, [blu] 18 With embedded \0 character: 4, [ab] 19 Append to just before resize: 31, [XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX] 20 Append to just after resize: 32, [XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX] 21 Buffer size after printbuf_strappend(): 16, [XXXXXXXXXXXXXXXX] 22 test_printbuf_memappend: end test 23 ======================================== 24 test_sprintbuf: starting test 25 Buffer length: 0 26 sprintbuf to just after resize(31+1): 32, [XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX], strlen(buf)=32 27 5, [plain] 28 6, [plain1] 29 16, [plain12147483647] 30 27, [plain12147483647-2147483648] 31 29, [plain12147483647-2147483648%s] 32 284, [plain12147483647-2147483648%sif string is greater than stack buffer, then use dynamic string with vasprintf. Note: some implementation of vsnprintf return -1 if output is truncated whereas some return the number of bytes that would have been written - this code handles both cases.] 33 test_sprintbuf: end test 34 ========================================
This page was automatically generated by LXR 0.3.1. • OpenWrt