Skip to content

Commit

Permalink
Fix prefix substitution issue for mch_nat devices.
Browse files Browse the repository at this point in the history
Replaced `${dev}` with `${pre_dev}` in MCH devices prefix substitution
to prevent suffix duplication. The previous substitution expanded the
prefix twice, leading to incorrect device names. This change ensures
proper name handling.
  • Loading branch information
gustavosr8 committed Oct 1, 2024
1 parent 1758e92 commit 28a58b1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions ipmiMgrApp/Db/mch_nat.substitutions
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,24 @@

file "mch_base.db"
{
pattern { dev , fruid }
{ $(dev)_Base, 3 }
pattern { dev , fruid }
{ $(pre_dev)_Base, 3 }
}

file "mch_clk_switch.db"
{
pattern { dev , fruid }
{ $(dev)_ClkSw, 60 }
pattern { dev , fruid }
{ $(pre_dev)_ClkSw, 60 }
}

file "mch_pci_hub.db"
{
pattern { dev , fruid }
{ $(dev)_PCI_Hub, 61 }
pattern { dev , fruid }
{ $(pre_dev)_PCI_Hub, 61 }
}

file "rtm_cpu.db"
{
pattern { dev , fruid }
{ $(dev)_RTM_CPU, 64 }
{ $(pre_dev)_RTM_CPU, 64 }
}
4 changes: 2 additions & 2 deletions ipmiMgrApp/Db/microtca_bpm_crate.substitutions
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ file "power_module.db"

file "mch_nat.db"
{
pattern { dev, power_channel }
{ MCH, 01 }
pattern { pre_dev, power_channel }
{ MCH , 01 }
}

file "cooling_unit.db"
Expand Down

0 comments on commit 28a58b1

Please sign in to comment.