[edk2-devel] [edk2-redfish-client][RFC PATCH 0/3] RedfishClientPkg: fix GetRedpathNodeByIndex()

2024-03-23 Thread Mike Maslenkin
This set contains fixes for proper nodes handling in GetRedpathNodeByIndex(). It fixes handling of nodes with Index different from 0, it removes leading '/' returned for section with Index = 0, also it fixes return of the last section.

This set does not have any impact to existing code, because i

[edk2-devel] [edk2-redfish-client][RFC PATCH 1/3] RedfishClientPkg: fix nodes count in GetRedpathNodeByIndex()

2024-03-23 Thread Mike Maslenkin
This patch fixes work of GetRedpathNodeByIndex() function with non zero Index argument. NumberNodes value was not changed after the new node found. This means that before this patch modified function worked only in case of Index = 0. Debug output for the initial case: @Redfish.Settings found:/re

[edk2-devel] [edk2-redfish-client][RFC PATCH 2/3] RedfishClientPkg: fix the last field processing in GetRedpathNodeByIndex()

2024-03-23 Thread Mike Maslenkin
After processing of nodes was fixed it was revealed that this function is not handling the last node correctly. The problem is that the end of node detected by comparing to L'/', but usually ConfigLang and other properties do not have terminating separator (i.e '/'). So, before this patch the situa

[edk2-devel] [edk2-redfish-client][RFC PATCH 3/3] RedfishClientPkg: fix the first node processing in GetRedpathNodeByIndex()

2024-03-23 Thread Mike Maslenkin
For node with index 0, the result of this function contains leading L'/' character. But for other nodes no such characters (separators) returned. Make processing of all fields consistent. After this patch the debug output for specified URI is the following: @Redfish.Settings found:/redfish/v1/Sy

Re: [edk2-devel] [PATCH] IntelFsp2Pkg/Tools: Updated iterator usage for Python 3 compatibility

2024-03-23 Thread Ashraf Ali S
Reviewed-by: S, Ashraf Ali Thanks., S, Ashraf Ali -Original Message- From: Liu, Zhiguang Sent: Monday, March 18, 2024 2:39 PM To: devel@edk2.groups.io Cc: Liu, Zhiguang ; Chiu, Chasel ; Desimone, Nathaniel L ; Duggapu, Chinni B ; Zeng, Star ; Kuo, Ted ; S, Ashraf Ali ; Mohapatra, S