| 506 | |
| 507 | JEMALLOC_FORMAT_PRINTF(3, 4) |
| 508 | static void |
| 509 | prof_dump_printf(write_cb_t *prof_dump_write, void *cbopaque, |
| 510 | const char *format, ...) { |
| 511 | va_list ap; |
| 512 | char buf[PROF_PRINTF_BUFSIZE]; |
| 513 | |
| 514 | va_start(ap, format); |
| 515 | malloc_vsnprintf(buf, sizeof(buf), format, ap); |
| 516 | va_end(ap); |
| 517 | prof_dump_write(cbopaque, buf); |
| 518 | } |
| 519 | |
| 520 | /* |
| 521 | * Casting a double to a uint64_t may not necessarily be in range; this can be |
no test coverage detected