Lines Matching refs:str

241 static char *string(char *str, char *end, const char *s,  in string()  argument
248 if (str < end) in string()
249 *str = ' '; in string()
250 ++str; in string()
254 if (str < end) in string()
255 *str = *s; in string()
256 ++str; ++s; in string()
259 if (str < end) in string()
260 *str = ' '; in string()
261 ++str; in string()
264 return str; in string()
267 static char *pointer(char *str, char *end, const char **fmt_ptr, in pointer() argument
287 return str; in pointer()
316 str = number(str, end, hex_buffer[i], 16, 2, -1, ZEROPAD); in pointer()
319 return str; in pointer()
323 if ( str < end ) in pointer()
324 *str = sep; in pointer()
325 ++str; in pointer()
346 str = string(str, end, s, -1, -1, 0); in pointer()
351 str = number(str, end, sym_offset, 16, -1, -1, SPECIAL|SIGN|PLUS); in pointer()
352 if ( str < end ) in pointer()
353 *str = '/'; in pointer()
354 ++str; in pointer()
355 str = number(str, end, sym_size, 16, -1, -1, SPECIAL); in pointer()
364 str = string(str, end, " [", -1, -1, 0); in pointer()
365 str = string(str, end, namebuf, -1, -1, 0); in pointer()
366 str = string(str, end, "]", -1, -1, 0); in pointer()
369 return str; in pointer()
378 str = string(str, end, "IDLE", -1, -1, 0); in pointer()
381 if ( str < end ) in pointer()
382 *str = 'd'; in pointer()
383 str = number(str + 1, end, v->domain->domain_id, 10, -1, -1, 0); in pointer()
385 if ( str < end ) in pointer()
386 *str = 'v'; in pointer()
387 return number(str + 1, end, v->vcpu_id, 10, -1, -1, 0); in pointer()
397 return number(str, end, (unsigned long)arg, in pointer()
423 char *str, *end, c; in vsnprintf() local
438 str = buf; in vsnprintf()
448 if (str < end) in vsnprintf()
449 *str = *fmt; in vsnprintf()
450 ++str; in vsnprintf()
514 if (str < end) in vsnprintf()
515 *str = ' '; in vsnprintf()
516 ++str; in vsnprintf()
520 if (str < end) in vsnprintf()
521 *str = c; in vsnprintf()
522 ++str; in vsnprintf()
524 if (str < end) in vsnprintf()
525 *str = ' '; in vsnprintf()
526 ++str; in vsnprintf()
535 str = string(str, end, s, field_width, precision, flags); in vsnprintf()
540 str = pointer(str, end, &fmt, va_arg(args, const void *), in vsnprintf()
548 *ip = (str - buf); in vsnprintf()
551 *ip = (str - buf); in vsnprintf()
554 *ip = (str - buf); in vsnprintf()
559 if (str < end) in vsnprintf()
560 *str = '%'; in vsnprintf()
561 ++str; in vsnprintf()
582 if (str < end) in vsnprintf()
583 *str = '%'; in vsnprintf()
584 ++str; in vsnprintf()
586 if (str < end) in vsnprintf()
587 *str = *fmt; in vsnprintf()
588 ++str; in vsnprintf()
612 str = number(str, end, num, base, in vsnprintf()
618 if (str < end) in vsnprintf()
619 *str = '\0'; in vsnprintf()
626 return str-buf; in vsnprintf()