Lines Matching refs:str
102 static inline bool hasMetadata(char* str, int str_len) { in hasMetadata() argument
109 (str[str_len - 9] == '/' || str[str_len - 39] == '/'); in hasMetadata()
181 char* str = nullptr; in logPrint() local
183 int rc = vasprintf(&str, fmt, args); in logPrint()
193 while ((cp = strchr(str, '\n'))) { in logPrint()
197 while ((cp = strstr(str, " "))) { in logPrint()
204 char* pidptr = strstr(str, pid_str); in logPrint()
217 bool info = strstr(str, " permissive=1") || strstr(str, " policy loaded "); in logPrint()
225 auditParse(str, uid, &denial_metadata); in logPrint()
228 iov[1].iov_base = str; in logPrint()
229 iov[1].iov_len = strlen(str); in logPrint()
239 free(str); in logPrint()
246 char* timeptr = strstr(str, audit_str); in logPrint()
257 size_t str_len = strnlen(str, LOGGER_ENTRY_MAX_PAYLOAD); in logPrint()
258 if (((fdDmesg < 0) || !initialized) && !hasMetadata(str, str_len)) in logPrint()
259 auditParse(str, uid, &denial_metadata); in logPrint()
275 memcpy(event->data, str, str_len - denial_metadata.length()); in logPrint()
290 const char* comm = strstr(str, comm_str); in logPrint()
291 const char* estr = str + strlen(str); in logPrint()
314 size_t prefix_len = estr - str; in logPrint()
327 strncpy(newstr + 1 + str_len, str, prefix_len); in logPrint()
342 free(str); in logPrint()