0006-bb_hexadicimal_bug573.patch 968 B

123456789101112131415161718192021222324
  1. From 2073f8537412aa47755eb6f3f22a114403e5285b Mon Sep 17 00:00:00 2001
  2. From: Peter Wu <peter@lekensteyn.nl>
  3. Date: Wed, 16 Apr 2014 18:19:01 +0200
  4. Subject: [PATCH] Fix devices with a bus larger than 9 (GH-573)
  5. The `-isolateDevice` option accepts a PCI ID in decimal format, not hex.
  6. ---
  7. src/bbsecondary.c | 2 +-
  8. 1 file changed, 1 insertion(+), 1 deletion(-)
  9. diff --git a/src/bbsecondary.c b/src/bbsecondary.c
  10. index 71a6b73..6b635ee 100644
  11. --- a/src/bbsecondary.c
  12. +++ b/src/bbsecondary.c
  13. @@ -138,7 +138,7 @@ bool start_secondary(bool need_secondary) {
  14. if (!bb_is_running(bb_status.x_pid)) {
  15. char pci_id[12];
  16. static char *x_conf_file;
  17. - snprintf(pci_id, 12, "PCI:%02x:%02x:%o", pci_bus_id_discrete->bus,
  18. + snprintf(pci_id, 12, "PCI:%02d:%02d:%o", pci_bus_id_discrete->bus,
  19. pci_bus_id_discrete->slot, pci_bus_id_discrete->func);
  20. if (!x_conf_file) {
  21. x_conf_file = xorg_path_w_driver(bb_config.x_conf_file, bb_config.driver);