From ab907b4fd88febda889d69855975157874f40f6e Mon Sep 17 00:00:00 2001 From: Maisam Arif Date: Fri, 1 Mar 2024 09:08:48 -0600 Subject: [PATCH] SWDEV-448626 - Removed gpu prefix in non-csv formats Signed-off-by: Maisam Arif Change-Id: I77fc58828a978080482e6ab01ff89f1f5a554dc5 [ROCm/amdsmi commit: 463817f34477d9e2a1f73227d6e25ceea0b0c49d] --- projects/amdsmi/amdsmi_cli/amdsmi_commands.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/projects/amdsmi/amdsmi_cli/amdsmi_commands.py b/projects/amdsmi/amdsmi_cli/amdsmi_commands.py index 9a531d722f..1168b5f963 100644 --- a/projects/amdsmi/amdsmi_cli/amdsmi_commands.py +++ b/projects/amdsmi/amdsmi_cli/amdsmi_commands.py @@ -161,12 +161,13 @@ class AMDSMICommands(): except amdsmi_exception.AmdSmiLibraryException as e: uuid = e.get_error_info() - # Store values based on format - if self.logger.is_human_readable_format(): - self.logger.store_output(args.gpu, 'AMDSMI_SPACING_REMOVAL', {'gpu_bdf':bdf, 'gpu_uuid':uuid}) - else: + # CSV format is intentionally aligned with Host + if self.logger.is_csv_format(): self.logger.store_output(args.gpu, 'gpu_bdf', bdf) self.logger.store_output(args.gpu, 'gpu_uuid', uuid) + else: + self.logger.store_output(args.gpu, 'bdf', bdf) + self.logger.store_output(args.gpu, 'uuid', uuid) if multiple_devices: self.logger.store_multiple_device_output()