Lines Matching refs:reslen
106 int reslen, len;
109 reslen = sizeof(buf);
117 len = strftime(p, reslen, "%Y-%m-%d %T: ", tm);
119 reslen -= len;
122 if (sa && reslen > 3) {
132 if (inet_ntop(sa->sa_family, addr, p + 1, reslen - 3) != NULL) {
138 reslen -= len + 3;
143 len = snprintf(p, reslen, "%s: ", ptab[pri].name);
145 reslen -= len;
149 len = snprintf(p, reslen, "%s: %s", func, fmt);
151 len = snprintf(p, reslen, "%s", fmt);
153 reslen -= len;
156 if (reslen == 0)