@@ -2054,19 +2054,26 @@ static int sfx_status(int argc, char **argv, struct command *cmd, struct plugin
20542054 printf ("%-35s%s\n" , "PCIe Link Status:" , link_string );
20552055 printf ("%-35s%s\n" , "PCIe Device Status:" , pcie_status );
20562056 if (sfx_smart .friendly_changecap_support ) {
2057- printf ("%-35s%llu GB\n" , "Current Formatted Capacity:" , sfx_smart .cur_formatted_capability );
2058- printf ("%-35s%llu GB\n" , "Max Formatted Capacity:" , sfx_smart .max_formatted_capability );
2059- printf ("%-35s%llu\n" , "Extendible Capacity LBA count:" , sfx_smart .extendible_cap_lbacount );
2060- } else if (capacity_valid )
2061- printf ("%-35s%llu GB\n" , "Formatted Capacity:" , capacity );
2062- printf ("%-35s%llu GB\n" , "Provisioned Capacity:" , IDEMA_CAP2GB (sfx_smart .total_physical_capability ));
2057+ printf ("%-35s%" PRIu64 " GB\n" , "Current Formatted Capacity:" ,
2058+ (uint64_t )sfx_smart .cur_formatted_capability );
2059+ printf ("%-35s%" PRIu64 " GB\n" , "Max Formatted Capacity:" ,
2060+ (uint64_t )sfx_smart .max_formatted_capability );
2061+ printf ("%-35s%" PRIu64 "\n" , "Extendible Capacity LBA count:" ,
2062+ (uint64_t )sfx_smart .extendible_cap_lbacount );
2063+ } else if (capacity_valid ) {
2064+ printf ("%-35s%" PRIu64 " GB\n" , "Formatted Capacity:" , (uint64_t )capacity );
2065+ }
2066+ printf ("%-35s%" PRIu64 " GB\n" , "Provisioned Capacity:" ,
2067+ (uint64_t )IDEMA_CAP2GB (sfx_smart .total_physical_capability ));
20632068 printf ("%-35s%u%%\n" , "Compression Ratio:" , sfx_smart .comp_ratio );
20642069 printf ("%-35s%u%%\n" , "Physical Used Ratio:" , sfx_smart .physical_usage_ratio );
2065- printf ("%-35s%llu GB\n" , "Free Physical Space:" , IDEMA_CAP2GB (sfx_smart .free_physical_capability ));
2070+ printf ("%-35s%" PRIu64 " GB\n" , "Free Physical Space:" ,
2071+ (uint64_t )IDEMA_CAP2GB (sfx_smart .free_physical_capability ));
20662072 printf ("%-35s%s\n" , "Firmware Verification:" , (sfx_smart .otp_rsa_en ) ? "On" :"Off" );
20672073 printf ("%-35s%s\n" , "IO Speed:" , io_speed );
20682074 printf ("%-35s%s\n" , "NUMA Node:" , numa_node );
2069- printf ("%-35s%lluK\n" , "Indirection Unit:" , (4 * sfx_freespace .map_unit ));
2075+ printf ("%-35s%" PRIu64 "K\n" , "Indirection Unit:" ,
2076+ (uint64_t )(4 * sfx_freespace .map_unit ));
20702077 printf ("%-35s%.2f\n" , "Lifetime WAF:" , write_amp );
20712078 printf ("%-35s%s\n" , "Critical Warning(s):" , path );
20722079 }
0 commit comments