Lines Matching defs:buf
247 char *buf = NULL;
275 buf = kzalloc(len, GFP_NOFS);
276 if (!buf)
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);
295 return buf;
368 char *buf;
375 buf = tomoyo_init_log(r, len, fmt, args);
376 if (!buf)
380 kfree(buf);
383 entry->log = buf;
384 len = tomoyo_round2(strlen(buf) + 1);
402 kfree(buf);