code: public static void printMountInfo(Map<String, MountPointInfo> mountTable) {
      for (Map.Entry<String, MountPointInfo> entry : mountTable.entrySet()) {
        String mMountPoint = entry.getKey();
        MountPointInfo mountPointInfo = entry.getValue();
  
        long capacityBytes = mountPointInfo.getUfsCapacityBytes();
        long usedBytes = mountPointInfo.getUfsUsedBytes();
  
        String usedPercentageInfo = "";
        if (capacityBytes > 0) {
          int usedPercentage = (int) (100L * usedBytes / capacityBytes);
          usedPercentageInfo = String.format("(%s%%)", usedPercentage);
        }
  
        String leftAlignFormat = getAlignFormat(mountTable);
  
        System.out.format(leftAlignFormat, mountPointInfo.getUfsUri(), mMountPoint,
            mountPointInfo.getUfsType(), FormatUtils.getSizeFromBytes(capacityBytes),
            FormatUtils.getSizeFromBytes(usedBytes) + usedPercentageInfo,
            mountPointInfo.getReadOnly() ? "" : "not ",
            mountPointInfo.getShared() ? "" : "not ");
        System.out.println("properties=" + mountPointInfo.getProperties() + ")");
      }
    }
docs: Prints mount information for a mount table.
  
  @param mountTable the mount table to get information from