Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/util-linux/fdisk_gpt.c
- Timestamp:
- Dec 20, 2016, 4:07:32 PM (7 years ago)
- Location:
- branches/3.3
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mindi-busybox/util-linux/fdisk_gpt.c
r2725 r3621 94 94 char numstr6[6]; 95 95 96 numstr6[5] = '\0'; 97 98 smart_ulltoa5(total_number_of_sectors, numstr6, " KMGTPEZY"); 96 smart_ulltoa5(total_number_of_sectors * sector_size, numstr6, " KMGTPEZY")[0] = '\0'; 99 97 printf("Disk %s: %llu sectors, %s\n", disk_device, 100 98 (unsigned long long)total_number_of_sectors, … … 109 107 (unsigned long long)SWAP_LE64(gpt_hdr->last_usable_lba)); 110 108 111 p rintf("Number Start (sector) End (sector) Size Code Name\n");109 puts("Number Start (sector) End (sector) Size Code Name"); 112 110 for (i = 0; i < n_parts; i++) { 113 111 gpt_partition *p = gpt_part(i); 114 112 if (p->lba_start) { 115 smart_ulltoa5( 1 + SWAP_LE64(p->lba_end) - SWAP_LE64(p->lba_start),116 numstr6, " KMGTPEZY") ;113 smart_ulltoa5((1 + SWAP_LE64(p->lba_end) - SWAP_LE64(p->lba_start)) * sector_size, 114 numstr6, " KMGTPEZY")[0] = '\0'; 117 115 printf("%4u %15llu %15llu %11s %04x ", 118 116 i + 1, … … 122 120 0x0700 /* FIXME */); 123 121 gpt_print_wide(p->name, 18); 124 printf("\n");122 bb_putchar('\n'); 125 123 } 126 124 }
Note:
See TracChangeset
for help on using the changeset viewer.