diff options
author | Abe Levkoy <alevkoy@chromium.org> | 2021-03-19 12:30:27 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-03-19 19:52:27 +0000 |
commit | ce1407c152ffc13998eef13ec3f2f030b8b2205e (patch) | |
tree | 1116cb4c5029f9abec685484ea9fbfe260275882 /util | |
parent | fcf762b7d2635e6cf6db361c9d28f9ee790dc474 (diff) | |
download | chrome-ec-ce1407c152ffc13998eef13ec3f2f030b8b2205e.tar.gz |
genvif: Capitalize Usb4Router like VIF Editor
VIF Editor 3.1.0.2 fails to load files that use "USB4Router" tags, but
it loads them correctly when they have "Usb4Router" instead. Generate
files with "Usb4Router."
BUG=none
TEST=Create VIF with USB4 tags in override file; load in VIF editor
BRANCH=firmware-volteer-13672.B-main
Signed-off-by: Abe Levkoy <alevkoy@chromium.org>
Change-Id: I04b452628c38eb1f25bed5ac3cc38125fd0a9257
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2774596
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'util')
-rw-r--r-- | util/genvif.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/util/genvif.c b/util/genvif.c index c9096af8d7..a8b7f24ec4 100644 --- a/util/genvif.c +++ b/util/genvif.c @@ -1040,13 +1040,13 @@ static void vif_output_vif_product_usb4router(FILE *vif_file, USB4_Router_Indexes)) break; - vif_out_str(vif_file, level++, "<USB4Router>"); + vif_out_str(vif_file, level++, "<Usb4Router>"); vif_out_fields(vif_file, level, router->vif_field, USB4_Router_Indexes); vif_output_vif_product_usb4router_endpoint(vif_file, router, level); - vif_out_str(vif_file, --level, "</USB4Router>"); + vif_out_str(vif_file, --level, "</Usb4Router>"); } vif_out_str(vif_file, --level, "</USB4RouterList>"); } @@ -1399,7 +1399,7 @@ static void override_vif_product_pcie_endpoint_field( str_value); else fprintf(stderr, - "VIF/Component/USB4Router/PCIeEndpoint:" + "VIF/Component/Usb4Router/PCIeEndpoint:" " Unknown tag '%s'\n", name); } } @@ -1420,7 +1420,7 @@ static void override_vif_product_pcie_endpoint_list_field( &endpoint_list[endpoint_index++]); else fprintf(stderr, - "VIF/Product/USB4Router/PCIeEndpointList:" + "VIF/Product/Usb4Router/PCIeEndpointList:" " Unknown tag '%s'\n", name); } } @@ -1434,7 +1434,7 @@ static void override_vif_product_usb4router_fields( int endpoint_index = 0; while (get_next_tag(name, tag_value, str_value)) { - if (streq(name, "/USB4Router")) + if (streq(name, "/Usb4Router")) break; if (streq(name, "PCIeEndpointList")) @@ -1455,7 +1455,7 @@ static void override_vif_product_usb4router_fields( str_value); else fprintf(stderr, - "VIF/Component/USB4Router:" + "VIF/Component/Usb4Router:" " Unknown tag '%s'\n", name); } } @@ -1472,7 +1472,7 @@ static void override_vif_product_usb4routerlist_fields( if (streq(name, "/USB4RouterList")) break; - if (streq(name, "USB4Router")) + if (streq(name, "Usb4Router")) override_vif_product_usb4router_fields( &router_list[router_index++]); else |