Lines Matching refs:file
34 /* Parsed IBs are difficult to read without colors. Use "less -R file" to
35 * read them, or use "aha -b -f file" to convert them to html.
51 static void print_value(FILE *file, uint32_t value, int bits)
56 fprintf(file, "%u\n", value);
58 fprintf(file, "%u (0x%0*x)\n", value, bits / 4, value);
63 fprintf(file, "%.1ff (0x%0*x)\n", f, bits / 4, value);
66 fprintf(file, "0x%0*x\n", bits / 4, value);
70 static void print_named_value(FILE *file, const char *name, uint32_t value,
73 print_spaces(file, INDENT_PKT);
74 fprintf(file, COLOR_YELLOW "%s" COLOR_RESET " <- ", name);
75 print_value(file, value, bits);
78 static void eg_dump_reg(FILE *file, unsigned offset, uint32_t value,
90 print_spaces(file, INDENT_PKT);
91 fprintf(file, COLOR_YELLOW "%s" COLOR_RESET " <- ",
95 print_value(file, value, 32);
110 print_spaces(file,
114 fprintf(file, "%s = ", egd_strings + field->name_offset);
117 fprintf(file, "%s\n", egd_strings + values_offsets[val]);
119 print_value(file, val,
128 print_spaces(file, INDENT_PKT);
129 fprintf(file, COLOR_YELLOW "0x%05x" COLOR_RESET " <- 0x%08x\n", offset, value);
273 * Parse and print an IB into a file.
275 * \param f file