Lines Matching refs:slen
326 int slen; in ZTEST() local
328 CBPRINTF_STATIC_PACKAGE(NULL, 0, slen, ALIGN_OFFSET, flags, TEST_FMT); in ZTEST()
331 zassert_equal(len, slen, "Runtime length: %d, static length: %d", len, slen); in ZTEST()
334 uint8_t __aligned(CBPRINTF_PACKAGE_ALIGNMENT) spackage[slen]; in ZTEST()
343 memset(spackage, 0, slen); in ZTEST()
346 CBPRINTF_STATIC_PACKAGE(spackage, sizeof(spackage), slen, ALIGN_OFFSET, flags, TEST_FMT); in ZTEST()
349 zassert_equal(len, slen, "Runtime length: %d, static length: %d", len, slen); in ZTEST()
479 int slen; in ZTEST() local
481 CBPRINTF_STATIC_PACKAGE(NULL, 0, slen, ALIGN_OFFSET, flags, TEST_FMT); in ZTEST()
483 zassert_equal(len, slen); in ZTEST()
493 CBPRINTF_STATIC_PACKAGE(spackage, sizeof(spackage), slen, ALIGN_OFFSET, flags, TEST_FMT); in ZTEST()
495 zassert_equal(slen, len2); in ZTEST()
601 int slen; in ZTEST() local
603 CBPRINTF_STATIC_PACKAGE(NULL, 0, slen, ALIGN_OFFSET, flags, TEST_FMT); in ZTEST()
605 zassert_equal(len, slen); in ZTEST()
615 CBPRINTF_STATIC_PACKAGE(spackage, sizeof(spackage), slen, ALIGN_OFFSET, flags, TEST_FMT); in ZTEST()
617 zassert_equal(slen, len2); in ZTEST()
694 int slen, slen2; in cbprintf_rw_loc_const_char_ptr() local
715 CBPRINTF_STATIC_PACKAGE(NULL, 0, slen, ALIGN_OFFSET, flags, TEST_FMT); in cbprintf_rw_loc_const_char_ptr()
716 zassert_true(slen > 0); in cbprintf_rw_loc_const_char_ptr()
718 uint8_t __aligned(CBPRINTF_PACKAGE_ALIGNMENT) spackage[slen]; in cbprintf_rw_loc_const_char_ptr()
720 memset(spackage, 0, slen); in cbprintf_rw_loc_const_char_ptr()
723 zassert_equal(slen, slen2); in cbprintf_rw_loc_const_char_ptr()
746 int exp_len = slen + (int)strlen(test_str1) + 1 - 1 - (keep_ro_str ? 1 : 2); in cbprintf_rw_loc_const_char_ptr()
765 check_package(spackage, slen, exp_str); in cbprintf_rw_loc_const_char_ptr()
856 int slen, clen; in ZTEST() local
869 slen = cbprintf_package(NULL, 0, flags, TEST_FMT); in ZTEST()
870 zassert_true(slen > 0); in ZTEST()
872 uint8_t __aligned(CBPRINTF_PACKAGE_ALIGNMENT) spackage[slen]; in ZTEST()
875 memset(spackage, 0, slen); in ZTEST()
877 slen = cbprintf_package(spackage, slen, flags, TEST_FMT); in ZTEST()
878 zassert_true(slen > 0); in ZTEST()
883 clen = cbprintf_package_convert(spackage, slen, NULL, 0, copy_flags, NULL, 0); in ZTEST()
886 clen = cbprintf_package_convert(spackage, slen, convert_cb, &ctx, copy_flags, NULL, 0); in ZTEST()
901 int slen, clen; in ZTEST() local
916 slen = cbprintf_package(NULL, 0, flags, TEST_FMT); in ZTEST()
917 zassert_true(slen > 0); in ZTEST()
919 uint8_t __aligned(CBPRINTF_PACKAGE_ALIGNMENT) spackage[slen]; in ZTEST()
922 memset(spackage, 0, slen); in ZTEST()
924 slen = cbprintf_package(spackage, slen, flags, TEST_FMT); in ZTEST()
925 zassert_true(slen > 0); in ZTEST()
930 clen = cbprintf_package_convert(spackage, slen, NULL, 0, copy_flags, in ZTEST()
939 clen = cbprintf_package_convert(spackage, slen, convert_cb, &ctx, copy_flags, in ZTEST()
952 int slen, clen, olen; in ZTEST() local
966 CBPRINTF_STATIC_PACKAGE(NULL, 0, slen, CBPRINTF_PACKAGE_ALIGNMENT, flags, TEST_FMT); in ZTEST()
967 zassert_true(slen > 0); in ZTEST()
969 uint8_t __aligned(CBPRINTF_PACKAGE_ALIGNMENT) spackage[slen]; in ZTEST()
972 memset(spackage, 0, slen); in ZTEST()
974 CBPRINTF_STATIC_PACKAGE(spackage, slen, olen, CBPRINTF_PACKAGE_ALIGNMENT, flags, TEST_FMT); in ZTEST()
975 zassert_equal(olen, slen); in ZTEST()
979 clen = cbprintf_package_convert(spackage, slen, NULL, 0, copy_flags, NULL, 0); in ZTEST()
981 zassert_true((size_t)clen == slen + sizeof(test_str1) + 1/*null*/ - 2 /* arg+ro idx gone*/); in ZTEST()
983 clen = cbprintf_package_convert(spackage, slen, convert_cb, &ctx, copy_flags, NULL, 0); in ZTEST()