Merge pull request #22416 from fbuihuu/misc

Misc
This commit is contained in:
Yu Watanabe
2022-02-05 09:26:40 +09:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ bool unit_name_is_valid(const char *n, UnitNameFlags flags) {
if (*i == '@' && !at)
at = i;
if (!strchr("@" VALID_CHARS, *i))
if (!strchr(VALID_CHARS_WITH_AT, *i))
return false;
}
+1 -1
View File
@@ -217,7 +217,7 @@ static int dev_pci_onboard(sd_device *dev, const LinkInfo *info, NetNames *names
names->pci_onboard[0] = '\0';
log_device_debug(dev, "Onboard index identifier: index=%lu phys_port=%s dev_port=%lu → %s",
idx, strempty(info->phys_port_name), dev_port,
empty_to_na(names->pci_slot));
empty_to_na(names->pci_onboard));
if (sd_device_get_sysattr_value(names->pcidev, "label", &names->pci_onboard_label) >= 0)
log_device_debug(dev, "Onboard label from PCI device: %s", names->pci_onboard_label);