aboutsummaryrefslogtreecommitdiff
path: root/util-linux/fdisk_sun.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-01-11 17:20:00 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-01-11 17:20:00 +0000
commitf7996f3b700a22797565e9aa57e251e6e3ac1e4d (patch)
treeaf4e797eef0a65f4e3dba94b325da0ec08452d36 /util-linux/fdisk_sun.c
parent3821fb13ea404d243115ff8ec161273b62826513 (diff)
downloadbusybox-w32-f7996f3b700a22797565e9aa57e251e6e3ac1e4d.tar.gz
busybox-w32-f7996f3b700a22797565e9aa57e251e6e3ac1e4d.tar.bz2
busybox-w32-f7996f3b700a22797565e9aa57e251e6e3ac1e4d.zip
Trailing whitespace removal over entire tree
Diffstat (limited to 'util-linux/fdisk_sun.c')
-rw-r--r--util-linux/fdisk_sun.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/util-linux/fdisk_sun.c b/util-linux/fdisk_sun.c
index a3ca66f68..10107783e 100644
--- a/util-linux/fdisk_sun.c
+++ b/util-linux/fdisk_sun.c
@@ -71,7 +71,7 @@ static const struct systypes sun_sys_types[] = {
71 { "\x83" "Linux native" }, /* LINUX_NATIVE */ 71 { "\x83" "Linux native" }, /* LINUX_NATIVE */
72 { "\x8e" "Linux LVM" }, /* 0x8e */ 72 { "\x8e" "Linux LVM" }, /* 0x8e */
73/* New (2.2.x) raid partition with autodetect using persistent superblock */ 73/* New (2.2.x) raid partition with autodetect using persistent superblock */
74 { "\xfd" "Linux raid autodetect" }, /* 0xfd */ 74 { "\xfd" "Linux raid autodetect" }, /* 0xfd */
75 { NULL } 75 { NULL }
76}; 76};
77 77
@@ -167,7 +167,7 @@ sun_autoconfigure_scsi(void)
167 167
168 if (ioctl(fd, SCSI_IOCTL_GET_IDLUN, &id)) 168 if (ioctl(fd, SCSI_IOCTL_GET_IDLUN, &id))
169 return NULL; 169 return NULL;
170 170
171 sprintf(buffer, 171 sprintf(buffer,
172 "Host: scsi%d Channel: %02d Id: %02d Lun: %02d\n", 172 "Host: scsi%d Channel: %02d Id: %02d Lun: %02d\n",
173 /* This is very wrong (works only if you have one HBA), 173 /* This is very wrong (works only if you have one HBA),
@@ -651,14 +651,14 @@ sun_list_table(int xtra)
651 uint32_t start = SUN_SSWAP32(sunlabel->partitions[i].start_cylinder) * heads * sectors; 651 uint32_t start = SUN_SSWAP32(sunlabel->partitions[i].start_cylinder) * heads * sectors;
652 uint32_t len = SUN_SSWAP32(sunlabel->partitions[i].num_sectors); 652 uint32_t len = SUN_SSWAP32(sunlabel->partitions[i].num_sectors);
653 printf("%s %c%c %9ld %9ld %9ld%c %2x %s\n", 653 printf("%s %c%c %9ld %9ld %9ld%c %2x %s\n",
654 partname(disk_device, i+1, w), /* device */ 654 partname(disk_device, i+1, w), /* device */
655 (sunlabel->infos[i].flags & 0x01) ? 'u' : ' ', /* flags */ 655 (sunlabel->infos[i].flags & 0x01) ? 'u' : ' ', /* flags */
656 (sunlabel->infos[i].flags & 0x10) ? 'r' : ' ', 656 (sunlabel->infos[i].flags & 0x10) ? 'r' : ' ',
657 (long) scround(start), /* start */ 657 (long) scround(start), /* start */
658 (long) scround(start+len), /* end */ 658 (long) scround(start+len), /* end */
659 (long) len / 2, len & 1 ? '+' : ' ', /* odd flag on end */ 659 (long) len / 2, len & 1 ? '+' : ' ', /* odd flag on end */
660 sunlabel->infos[i].id, /* type id */ 660 sunlabel->infos[i].id, /* type id */
661 partition_type(sunlabel->infos[i].id)); /* type name */ 661 partition_type(sunlabel->infos[i].id)); /* type name */
662 } 662 }
663 } 663 }
664} 664}