patch-drivers_usbhid-ups_c 549 B

12345678910111213
  1. $OpenBSD: patch-drivers_usbhid-ups_c,v 1.9 2017/01/16 00:12:15 jca Exp $
  2. --- drivers/usbhid-ups.c.orig Tue Dec 29 13:08:34 2015
  3. +++ drivers/usbhid-ups.c Sun Jan 15 23:54:35 2017
  4. @@ -963,7 +963,7 @@ void upsdrv_initups(void)
  5. regular expression (USB) or device_path (SHUT) */
  6. ret = comm_driver->open(&udev, &curDevice, subdriver_matcher, &callback);
  7. if (ret < 1)
  8. - fatalx(EXIT_FAILURE, "No matching HID UPS found");
  9. + fatalx(EXIT_FAILURE, "No matching HID UPS found - check permissions on /dev/ugen* and /dev/usb*");
  10. hd = &curDevice;