Lines Matching refs:conv
54 #define conv(hex, num) \ macro
69 printf("Data offset (unusd) : %s\n", conv(hex, h->data_offset)); in vhd_print_header()
70 printf("Table offset : %s\n", conv(hex, h->table_offset)); in vhd_print_header()
72 printf("Max BAT size : %s\n", conv(hex, h->max_bat_size)); in vhd_print_header()
73 printf("Block size : %s ", conv(hex, h->block_size)); in vhd_print_header()
74 printf("(%s MB)\n", conv(hex, h->block_size >> 20)); in vhd_print_header()
114 printf("Data offset : %s\n", conv(hex, f->data_offset)); in vhd_print_footer()
133 printf("Original disk size : %s MB ", conv(hex, f->orig_size >> 20)); in vhd_print_footer()
134 printf("(%s Bytes)\n", conv(hex, f->orig_size)); in vhd_print_footer()
136 printf("Current disk size : %s MB ", conv(hex, f->curr_size >> 20)); in vhd_print_footer()
137 printf("(%s Bytes)\n", conv(hex, f->curr_size)); in vhd_print_footer()
142 printf("Geometry : Cyl: %s, ", conv(hex, c)); in vhd_print_footer()
143 printf("Hds: %s, ", conv(hex, h)); in vhd_print_footer()
144 printf("Sctrs: %s\n", conv(hex, s)); in vhd_print_footer()
145 printf(" : = %s MB ", conv(hex, (c * h * s) >> 11)); in vhd_print_footer()
146 printf("(%s Bytes)\n", conv(hex, c * h * s << 9)); in vhd_print_footer()
221 conv(hex, loc->data_space)); in vhd_print_parent_locators()
223 conv(hex, loc->data_len)); in vhd_print_parent_locators()
225 conv(hex, loc->data_offset)); in vhd_print_parent_locators()
238 conv(hex, batmap->header.batmap_offset)); in vhd_print_batmap_header()
240 conv(hex, batmap->header.batmap_size)); in vhd_print_batmap_header()
256 conv(hex, block)); in check_block_range()
328 conv(hex, sector + count)); in vhd_print_logical_to_physical()
343 printf("logical sector %s: ", conv(hex, cur)); in vhd_print_logical_to_physical()
344 printf("block number: %s, ", conv(hex, blk)); in vhd_print_logical_to_physical()
345 printf("sector offset: %s, ", conv(hex, lsec)); in vhd_print_logical_to_physical()
347 "not allocated" : conv(hex, offset))); in vhd_print_logical_to_physical()
366 printf("block: %s: ", conv(hex, cur)); in vhd_print_bat()
369 conv(hex, vhd_sectors_to_bytes(offset)))); in vhd_print_bat()
411 printf("block %s not allocated\n", conv(hex, cur)); in vhd_print_bitmap()
438 printf("sector %s past end of file\n", conv(hex, sector)); in vhd_test_bitmap()
468 printf("block %s: ", conv(hex, blk)); in vhd_test_bitmap()
469 printf("sec: %s: %d\n", conv(hex, sec), bit); in vhd_test_bitmap()
513 fprintf(stderr, "batmap for block %s: %d\n", conv(hex, cur), in vhd_test_batmap()
536 printf("block %s not allocated\n", conv(hex, cur)); in vhd_print_data()