From 0a11e23c0830bb633c2ac3bcaf5e39626f5644d9 Mon Sep 17 00:00:00 2001 From: "Bill(Shuzhou) Liu" Date: Fri, 21 Jun 2024 09:08:53 -0500 Subject: [PATCH] Change error message for concise json/csv The error message is changed to not supported instead of errors. Change-Id: I28bd1e009770674389534be12519cc34673ba846 [ROCm/rocm_smi_lib commit: 57e8e72b79522afc5f293d05ae87d6b59f78f064] --- projects/rocm-smi-lib/python_smi_tools/rocm_smi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/rocm-smi-lib/python_smi_tools/rocm_smi.py b/projects/rocm-smi-lib/python_smi_tools/rocm_smi.py index b770716c9d..63773797a0 100755 --- a/projects/rocm-smi-lib/python_smi_tools/rocm_smi.py +++ b/projects/rocm-smi-lib/python_smi_tools/rocm_smi.py @@ -1939,7 +1939,7 @@ def showAllConcise(deviceList): """ global PRINT_JSON, appWidth if PRINT_JSON: - print('ERROR: Cannot print JSON/CSV output for concise output') + print('NOT_SUPPORTED: Cannot print JSON/CSV output for concise output') sys.exit(1) silent = True @@ -2043,7 +2043,7 @@ def showAllConciseHw(deviceList): """ global PRINT_JSON if PRINT_JSON: - print('ERROR: Cannot print JSON/CSV output for concise hardware output') + print('NOT_SUPPORTED: Cannot print JSON/CSV output for concise hardware output') sys.exit(1) header = ['GPU', 'NODE', 'DID', 'GUID', 'GFX VER', 'GFX RAS', 'SDMA RAS', 'UMC RAS', 'VBIOS', 'BUS' , 'PARTITION ID']