diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2026-02-02 05:19:26 +0100 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2026-02-02 05:19:26 +0100 |
| commit | 4e815cd7b3b9005a73b9d73584a4e9751d15b8a1 (patch) | |
| tree | 3009391c615c2d827c719eba145a72432394e593 | |
| parent | 3b19867d97cf4cac7d68e7edb7b18df12875c68b (diff) | |
| download | busybox-w32-4e815cd7b3b9005a73b9d73584a4e9751d15b8a1.tar.gz busybox-w32-4e815cd7b3b9005a73b9d73584a4e9751d15b8a1.tar.bz2 busybox-w32-4e815cd7b3b9005a73b9d73584a4e9751d15b8a1.zip | |
fdisk_sgi: formatting fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| -rw-r--r-- | util-linux/fdisk_sgi.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/util-linux/fdisk_sgi.c b/util-linux/fdisk_sgi.c index acb438ac0..656cb02fc 100644 --- a/util-linux/fdisk_sgi.c +++ b/util-linux/fdisk_sgi.c | |||
| @@ -307,7 +307,7 @@ sgi_list_table(int xtra) | |||
| 307 | "%u heads, %u sectors, %u cylinders\n" | 307 | "%u heads, %u sectors, %u cylinders\n" |
| 308 | "Units = %ss of %u * 512 bytes\n\n", | 308 | "Units = %ss of %u * 512 bytes\n\n", |
| 309 | disk_device, g_heads, g_sectors, g_cylinders, | 309 | disk_device, g_heads, g_sectors, g_cylinders, |
| 310 | str_units(), units_per_sector ); | 310 | str_units(), units_per_sector); |
| 311 | } | 311 | } |
| 312 | 312 | ||
| 313 | w = strlen(disk_device); | 313 | w = strlen(disk_device); |
| @@ -658,7 +658,7 @@ sgi_set_entire(void) | |||
| 658 | int n; | 658 | int n; |
| 659 | 659 | ||
| 660 | for (n = 10; n < g_partitions; n++) { | 660 | for (n = 10; n < g_partitions; n++) { |
| 661 | if (!sgi_get_num_sectors(n) ) { | 661 | if (!sgi_get_num_sectors(n)) { |
| 662 | sgi_set_partition(n, 0, sgi_get_lastblock(), SGI_VOLUME); | 662 | sgi_set_partition(n, 0, sgi_get_lastblock(), SGI_VOLUME); |
| 663 | break; | 663 | break; |
| 664 | } | 664 | } |
| @@ -739,7 +739,7 @@ sgi_add_partition(int n, int sys) | |||
| 739 | first *= units_per_sector; | 739 | first *= units_per_sector; |
| 740 | else | 740 | else |
| 741 | first = first; /* align to cylinder if you know how ... */ | 741 | first = first; /* align to cylinder if you know how ... */ |
| 742 | if (!last ) | 742 | if (!last) |
| 743 | last = isinfreelist(first); | 743 | last = isinfreelist(first); |
| 744 | if (last != 0) | 744 | if (last != 0) |
| 745 | break; | 745 | break; |
| @@ -753,7 +753,7 @@ sgi_add_partition(int n, int sys) | |||
| 753 | last *= units_per_sector; | 753 | last *= units_per_sector; |
| 754 | else | 754 | else |
| 755 | last = last; /* align to cylinder if You know how ... */ | 755 | last = last; /* align to cylinder if You know how ... */ |
| 756 | if ( (sys == SGI_VOLUME) && (first != 0 || last != sgi_get_lastblock() ) ) | 756 | if ((sys == SGI_VOLUME) && (first != 0 || last != sgi_get_lastblock())) |
| 757 | printf("It is highly recommended that eleventh partition\n" | 757 | printf("It is highly recommended that eleventh partition\n" |
| 758 | "covers the entire disk and is of type 'SGI volume'\n"); | 758 | "covers the entire disk and is of type 'SGI volume'\n"); |
| 759 | sgi_set_partition(n, first, last-first, sys); | 759 | sgi_set_partition(n, first, last-first, sys); |
| @@ -805,7 +805,7 @@ create_sgilabel(void) | |||
| 805 | printf("Trying to keep parameters of partition %u\n", i); | 805 | printf("Trying to keep parameters of partition %u\n", i); |
| 806 | if (SGI_DEBUG) | 806 | if (SGI_DEBUG) |
| 807 | printf("ID=%02x\tSTART=%u\tLENGTH=%u\n", | 807 | printf("ID=%02x\tSTART=%u\tLENGTH=%u\n", |
| 808 | old[i].sysid, old[i].start, old[i].nsect); | 808 | old[i].sysid, old[i].start, old[i].nsect); |
| 809 | } | 809 | } |
| 810 | } | 810 | } |
| 811 | } | 811 | } |
| @@ -846,8 +846,8 @@ create_sgilabel(void) | |||
| 846 | //sgilabel->devparam.xylogics_gap2 = SGI_SSWAP16(0); | 846 | //sgilabel->devparam.xylogics_gap2 = SGI_SSWAP16(0); |
| 847 | //sgilabel->devparam.xylogics_readgate = SGI_SSWAP16(0); | 847 | //sgilabel->devparam.xylogics_readgate = SGI_SSWAP16(0); |
| 848 | //sgilabel->devparam.xylogics_writecont = SGI_SSWAP16(0); | 848 | //sgilabel->devparam.xylogics_writecont = SGI_SSWAP16(0); |
| 849 | //memset( &(sgilabel->directory), 0, sizeof(struct volume_directory)*15 ); | 849 | //memset(&(sgilabel->directory), 0, sizeof(struct volume_directory)*15); |
| 850 | //memset( &(sgilabel->partitions), 0, sizeof(struct sgi_partinfo)*16 ); | 850 | //memset(&(sgilabel->partitions), 0, sizeof(struct sgi_partinfo)*16); |
| 851 | current_label_type = LABEL_SGI; | 851 | current_label_type = LABEL_SGI; |
| 852 | g_partitions = 16; | 852 | g_partitions = 16; |
| 853 | sgi_volumes = 15; | 853 | sgi_volumes = 15; |
| @@ -880,10 +880,10 @@ fill_sgiinfo(void) | |||
| 880 | info->b2 = SGI_SSWAP16(-1); | 880 | info->b2 = SGI_SSWAP16(-1); |
| 881 | info->b3 = SGI_SSWAP16(1); | 881 | info->b3 = SGI_SSWAP16(1); |
| 882 | /* You may want to replace this string !!!!!!! */ | 882 | /* You may want to replace this string !!!!!!! */ |
| 883 | strcpy( (char*)info->scsi_string, "IBM OEM 0662S12 3 30" ); | 883 | strcpy((char*)info->scsi_string, "IBM OEM 0662S12 3 30"); |
| 884 | strcpy( (char*)info->serial, "0000" ); | 884 | strcpy((char*)info->serial, "0000"); |
| 885 | info->check1816 = SGI_SSWAP16(18*256 +16 ); | 885 | info->check1816 = SGI_SSWAP16(18*256 +16); |
| 886 | strcpy( (char*)info->installer, "Sfx version 5.3, Oct 18, 1994" ); | 886 | strcpy((char*)info->installer, "Sfx version 5.3, Oct 18, 1994"); |
| 887 | return info; | 887 | return info; |
| 888 | } | 888 | } |
| 889 | #endif /* SGI_LABEL */ | 889 | #endif /* SGI_LABEL */ |
