1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

hwdb/autosuspend: add missing parenthesis

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2020-07-16 11:40:53 +02:00
parent 42165319b1
commit 19b4864346

View File

@ -14,7 +14,7 @@ for entry in chromiumos.gen_autosuspend_rules.PCI_IDS:
device = int(device, 16) device = int(device, 16)
print('pci:v{:08X}d{:08X}*'.format(vendor, device)) print('pci:v{:08X}d{:08X}*'.format(vendor, device))
print('# usb:v<VEND>p<PROD> (4 uppercase hexadecimal digits twice') print('# usb:v<VEND>p<PROD> (4 uppercase hexadecimal digits twice)')
for entry in chromiumos.gen_autosuspend_rules.USB_IDS: for entry in chromiumos.gen_autosuspend_rules.USB_IDS:
vendor, product = entry.split(':') vendor, product = entry.split(':')
vendor = int(vendor, 16) vendor = int(vendor, 16)