Lines Matching refs:buf
247 char *buf = NULL; in tomoyo_init_log() local
275 buf = kzalloc(len, GFP_NOFS); in tomoyo_init_log()
276 if (!buf) in tomoyo_init_log()
279 pos = snprintf(buf, len, "%s", header); in tomoyo_init_log()
283 pos += snprintf(buf + pos, len - pos, in tomoyo_init_log()
287 pos += snprintf(buf + pos, len - pos, " symlink.target=\"%s\"", in tomoyo_init_log()
289 pos += snprintf(buf + pos, len - pos, "\n%s\n", domainname); in tomoyo_init_log()
290 vsnprintf(buf + pos, len - pos, fmt, args); in tomoyo_init_log()
295 return buf; in tomoyo_init_log()
369 char *buf; in tomoyo_write_log2() local
376 buf = tomoyo_init_log(r, len, fmt, args); in tomoyo_write_log2()
377 if (!buf) in tomoyo_write_log2()
381 kfree(buf); in tomoyo_write_log2()
384 entry->log = buf; in tomoyo_write_log2()
385 len = kmalloc_size_roundup(strlen(buf) + 1); in tomoyo_write_log2()
403 kfree(buf); in tomoyo_write_log2()