Changeset d858a660 in mainline for uspace/app/fdisk/fdisk.c
- Timestamp:
- 2017-07-04T15:05:43Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9c2c7d2
- Parents:
- 2456fd0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/fdisk/fdisk.c
r2456fd0 rd858a660 677 677 char *svcname = NULL; 678 678 char *spkind; 679 const char *label; 679 680 int rc; 680 681 int npart; … … 717 718 fdisk_dev_get_flags(dev, &dflags); 718 719 719 printf("Device: %s , %s\n", sdcap, svcname);720 printf("Device: %s (%s)\n", svcname, sdcap); 720 721 free(sdcap); 721 722 sdcap = NULL; … … 769 770 } 770 771 772 if (str_size(pinfo.label) > 0) 773 label = pinfo.label; 774 else 775 label = "(No label)"; 776 771 777 if (linfo.ltype == lt_none) 772 printf("Entire disk: %s ", scap);778 printf("Entire disk: %s %s", label, scap); 773 779 else 774 printf("Partition %d: %s ", npart, scap);780 printf("Partition %d: %s %s", npart, label, scap); 775 781 776 782 if ((linfo.flags & lf_ext_supp) != 0) {
Note:
See TracChangeset
for help on using the changeset viewer.