Lines Matching refs:snprintf
45 return snprintf(output, len, "%" PRIu64 " us", micros); in AppendHumanMicros()
47 return snprintf(output, len, "%.3lf ms", in AppendHumanMicros()
50 return snprintf(output, len, "%.3lf sec", in AppendHumanMicros()
53 return snprintf(output, len, "%02" PRIu64 ":%05.3f M:S", in AppendHumanMicros()
57 return snprintf(output, len, "%02" PRIu64 ":%02" PRIu64 ":%05.3f H:M:S", in AppendHumanMicros()
70 return snprintf(output, len, "%" PRIu64 "TB", bytes >> 40); in AppendHumanBytes()
72 return snprintf(output, len, "%" PRIu64 "GB", bytes >> 30); in AppendHumanBytes()
74 return snprintf(output, len, "%" PRIu64 "MB", bytes >> 20); in AppendHumanBytes()
76 return snprintf(output, len, "%" PRIu64 "KB", bytes >> 10); in AppendHumanBytes()
78 return snprintf(output, len, "%" PRIu64 "B", bytes); in AppendHumanBytes()
84 snprintf(buf, sizeof(buf), "%" PRIu64, num); in AppendNumberTo()
95 snprintf(buf, sizeof(buf), "\\x%02x", in AppendEscapedStringTo()
112 snprintf(buf, sizeof(buf), "%" PRIi64, num); in NumberToHumanString()
114 snprintf(buf, sizeof(buf), "%" PRIi64 "K", num / 1000); in NumberToHumanString()
116 snprintf(buf, sizeof(buf), "%" PRIi64 "M", num / 1000000); in NumberToHumanString()
118 snprintf(buf, sizeof(buf), "%" PRIi64 "G", num / 1000000000); in NumberToHumanString()
138 snprintf(buf, sizeof(buf), "%.2f %s", final_size, size_name[size_idx]); in BytesToHumanString()