Lines Matching refs:format
2 * This file contains format parsing code for blkparse, allowing you to
3 * customize the individual action format and generel output format.
39 fprintf(stderr,"Bad format specifier %c\n", spec);
43 fprintf(stderr,"Bad format specifier - need ',' %s\n", option);
167 char format[64];
171 sprintf(format, "%%-%d", width);
173 sprintf(format, "%%%d", width);
175 sprintf(format, "%%");
179 fprintf(ofp, strcat(format, "s"), act);
182 fprintf(ofp, strcat(format, "d"), pci->cpu);
187 fprintf(ofp, strcat(format, "s"), name);
194 fprintf(ofp, strcat(format, "s"), rwbs);
197 case 'D': /* format width ignored */
201 fprintf(ofp, strcat(format, "d"), t->error);
204 fprintf(ofp, strcat(format, "d"), MAJOR(t->device));
207 fprintf(ofp, strcat(format, "d"), MINOR(t->device));
210 fprintf(ofp, strcat(format, "u"), t_sec(t));
213 fprintf(ofp, strcat(format, "u"), t->bytes);
216 fprintf(ofp, strcat(format, "u"), t->pid);
218 case 'P': { /* format width ignored */
225 fprintf(ofp, strcat(format, "ld"), t->sequence);
228 fprintf(ofp, strcat(format, "lu"), t->sector);
231 sprintf(format, "%%0%dlu", has_w ? width : 9);
232 fprintf(ofp, format, NANO_SECONDS(t->time));
235 fprintf(ofp, strcat(format, "d"), SECONDS(t->time));
242 fprintf(ofp, strcat(format, "llu"), elapsed / 1000);
245 fprintf(ofp, strcat(format, "u"), get_pdu_int(t));
248 fprintf(ofp, strcat(format, "s"), print_time(t->time));
251 fprintf(ofp,strcat(format, "c"), field);
449 "Invalid escape char in format %c\n",