From 90285a1e9200ee8c61804ff2bd31a2e5f4f840a6 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Thu, 22 Jun 2017 13:24:29 +0000 Subject: devel/android-tools-fastboot-devel: use upstream notation for device paths $ adb devices -l List of devices attached ABCDE1234 device usb:0:2 product:FOO model:BAR device:qux $ fastboot devices -l ABCDE1234 fastboot usb:0:2 --- devel/android-tools-fastboot-devel/Makefile | 2 +- devel/android-tools-fastboot-devel/files/usb_freebsd.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'devel') diff --git a/devel/android-tools-fastboot-devel/Makefile b/devel/android-tools-fastboot-devel/Makefile index d903de3c4187..c526e5b36904 100644 --- a/devel/android-tools-fastboot-devel/Makefile +++ b/devel/android-tools-fastboot-devel/Makefile @@ -3,7 +3,7 @@ # Hint: git describe --abbrev=12 --match android-o-preview-2 DISTVERSION= o-preview-2-332 DISTVERSIONSUFFIX= -gd1e9e7bc06f0 -PORTREVISION= 0 +PORTREVISION= 1 PKGNAMESUFFIX= -devel GH_MYTAG= ${DISTVERSIONPREFIX}${DISTVERSION:C/-[0-9]*$//} diff --git a/devel/android-tools-fastboot-devel/files/usb_freebsd.cpp b/devel/android-tools-fastboot-devel/files/usb_freebsd.cpp index 1eb0ca809ee6..c7664e67697a 100644 --- a/devel/android-tools-fastboot-devel/files/usb_freebsd.cpp +++ b/devel/android-tools-fastboot-devel/files/usb_freebsd.cpp @@ -82,7 +82,7 @@ probe(std::unique_ptr &h, ifc_match_func callback) info.dev_protocol = ddesc.bDeviceProtocol; info.writable = 1; - snprintf(info.device_path, sizeof(info.device_path), "ugen%d.%d", + snprintf(info.device_path, sizeof(info.device_path), "usb:%d:%d", libusb_get_bus_number(h->dev), libusb_get_device_address(h->dev)); if (ddesc.iSerialNumber != 0) { -- cgit