From 16f992e2282195258362606274061b0aa01efa15 Mon Sep 17 00:00:00 2001 From: Josh Gao Date: Fri, 10 May 2019 11:28:38 -0700 Subject: [PATCH] fastboot: demote OS X USB error. We can't create interface iterators for all devices (e.g. the keyboard, touchbar, etc.), so we get multiple instances of this log spam on every command. Demote it to a warning that only shows up on debug builds. Test: none Change-Id: I20581b9134c05360d5723b09ffe8de8c4cfd6a3f --- fastboot/usb_osx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastboot/usb_osx.cpp b/fastboot/usb_osx.cpp index f597f5036..8a3c21331 100644 --- a/fastboot/usb_osx.cpp +++ b/fastboot/usb_osx.cpp @@ -106,7 +106,7 @@ static int try_interfaces(IOUSBDeviceInterface500** dev, usb_handle* handle) { kr = (*dev)->CreateInterfaceIterator(dev, &request, &iterator); if (kr != 0) { - ERR("Couldn't create a device interface iterator: (%08x)\n", kr); + WARN("Couldn't create a device interface iterator: (%08x)\n", kr); return -1; }