Lines Matching full:percent
124 const char *get_percent_color(double percent) in get_percent_color() argument
133 if (fabs(percent) >= MIN_RED) in get_percent_color()
136 if (fabs(percent) > MIN_GREEN) in get_percent_color()
142 int percent_color_fprintf(FILE *fp, const char *fmt, double percent) in percent_color_fprintf() argument
147 color = get_percent_color(percent); in percent_color_fprintf()
148 r = color_fprintf(fp, color, fmt, percent); in percent_color_fprintf()
162 double percent; in percent_color_snprintf() local
165 percent = va_arg(args, double); in percent_color_snprintf()
167 return value_color_snprintf(bf, size, fmt, percent); in percent_color_snprintf()
174 double percent; in percent_color_len_snprintf() local
179 percent = va_arg(args, double); in percent_color_len_snprintf()
182 color = get_percent_color(percent); in percent_color_len_snprintf()
183 return color_snprintf(bf, size, color, fmt, len, percent); in percent_color_len_snprintf()