Lines Matching refs:buf
72 WritePrefix(char *buf, PRUint32 bufLen)
74 return PR_snprintf(buf, bufLen, "[%u:%p] %s ",
88 WritePrefix(char *buf, PRUint32 bufLen)
90 return PR_snprintf(buf, bufLen, "[%u:%p] %s ",
125 char buf[512];
130 if (nb > sizeof(buf) - 2)
131 nb = sizeof(buf) - 2;
132 PL_strncpy(buf, ipcLogPrefix, nb);
133 buf[nb++] = ' ';
137 nb = WritePrefix(buf, sizeof(buf));
140 PR_vsnprintf(buf + nb, sizeof(buf) - nb, fmt, ap);
141 buf[sizeof(buf) - 1] = '\0';
144 LogFlow(("%s", buf));
146 fwrite(buf, strlen(buf), 1, stdout);