Lines Matching defs:len
29 int len;
38 len = snprintf(buffer, tomoyo_buffer_len - 1, "argv[]={ ");
39 cp = buffer + len;
235 * @len: Buffer size needed for @fmt and @args.
244 char *tomoyo_init_log(struct tomoyo_request_info *r, int len, const char *fmt,
259 len += strlen(domainname) + strlen(header) + 10;
268 len += strlen(realpath) + 80 + strlen(bprm_info);
272 len += 18 + strlen(symlink);
274 len = tomoyo_round2(len);
275 buf = kzalloc(len, GFP_NOFS);
278 len--;
279 pos = snprintf(buf, len, "%s", header);
283 pos += snprintf(buf + pos, len - pos,
287 pos += snprintf(buf + pos, len - pos, " symlink.target=\"%s\"",
289 pos += snprintf(buf + pos, len - pos, "\n%s\n", domainname);
290 vsnprintf(buf + pos, len - pos, fmt, args);
359 * @len: Buffer size needed for @fmt and @args.
365 void tomoyo_write_log2(struct tomoyo_request_info *r, int len, const char *fmt,
375 buf = tomoyo_init_log(r, len, fmt, args);
384 len = tomoyo_round2(strlen(buf) + 1);
389 entry->size = len + tomoyo_round2(sizeof(*entry));
422 int len;
425 len = vsnprintf((char *) &len, 1, fmt, args) + 1;
428 tomoyo_write_log2(r, len, fmt, args);