Lines Matching refs:ssnprintf
6846 struct btf_show_snprintf *ssnprintf = (struct btf_show_snprintf *)show; in btf_snprintf_show() local
6849 len = vsnprintf(show->target, ssnprintf->len_left, fmt, args); in btf_snprintf_show()
6852 ssnprintf->len_left = 0; in btf_snprintf_show()
6853 ssnprintf->len = len; in btf_snprintf_show()
6854 } else if (len >= ssnprintf->len_left) { in btf_snprintf_show()
6856 ssnprintf->len_left = 0; in btf_snprintf_show()
6857 ssnprintf->len += len; in btf_snprintf_show()
6859 ssnprintf->len_left -= len; in btf_snprintf_show()
6860 ssnprintf->len += len; in btf_snprintf_show()
6868 struct btf_show_snprintf ssnprintf; in btf_type_snprintf_show() local
6870 ssnprintf.show.target = buf; in btf_type_snprintf_show()
6871 ssnprintf.show.flags = flags; in btf_type_snprintf_show()
6872 ssnprintf.show.showfn = btf_snprintf_show; in btf_type_snprintf_show()
6873 ssnprintf.len_left = len; in btf_type_snprintf_show()
6874 ssnprintf.len = 0; in btf_type_snprintf_show()
6876 btf_type_show(btf, type_id, obj, (struct btf_show *)&ssnprintf); in btf_type_snprintf_show()
6879 if (ssnprintf.show.state.status) in btf_type_snprintf_show()
6880 return ssnprintf.show.state.status; in btf_type_snprintf_show()
6883 return ssnprintf.len; in btf_type_snprintf_show()