Chassis: print version; don't print N/A

This commit is contained in:
李通洲
2023-06-19 21:19:09 +08:00
parent eef3afabb7
commit 9bd8a788c8
2 changed files with 6 additions and 8 deletions
+2 -1
View File
@@ -23,7 +23,8 @@ static bool hostValueSet(FFstrbuf* value)
ffStrbufIgnCaseCompS(value, "Not Applicable") != 0 &&
ffStrbufIgnCaseCompS(value, "INVALID") != 0 &&
ffStrbufIgnCaseCompS(value, "Type1ProductConfigId") != 0 &&
ffStrbufIgnCaseCompS(value, "All Series") != 0
ffStrbufIgnCaseCompS(value, "All Series") != 0 &&
ffStrbufIgnCaseCompS(value, "N/A") != 0
;
}
+4 -7
View File
@@ -30,13 +30,10 @@ void ffPrintChassis(FFinstance* instance, FFChassisOptions* options)
if(options->moduleArgs.outputFormat.length == 0)
{
ffPrintLogoAndKey(instance, FF_CHASSIS_MODULE_NAME, 0, &options->moduleArgs.key, &options->moduleArgs.keyColor);
FF_STRBUF_AUTO_DESTROY output = ffStrbufCreateCopy(&result.chassisType);
if(result.chassisVersion.length > 0)
ffStrbufAppendF(&output, " (%s)", result.chassisVersion.chars);
ffStrbufPutTo(&output, stdout);
ffStrbufWriteTo(&result.chassisType, stdout);
if (result.chassisVersion.length)
printf(" (%s)", result.chassisVersion.chars);
putchar('\n');
}
else
{