From df05d4cc084464b4e04f9011ea499b8d7ca7f4a7 Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Tue, 17 Oct 2017 10:47:34 +0100 Subject: [PATCH] fix(usbboot): opening device debug message prints undefined (#1776) We have a debug message that prints `device.name`, which is not a valid property, and therefore the debug logs show `undefined` instead of the USB id pair. Change-Type: patch Signed-off-by: Juan Cruz Viotti --- lib/shared/sdk/usbboot/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/shared/sdk/usbboot/index.js b/lib/shared/sdk/usbboot/index.js index ccfb365b..bc79a1c3 100644 --- a/lib/shared/sdk/usbboot/index.js +++ b/lib/shared/sdk/usbboot/index.js @@ -339,7 +339,7 @@ exports.scan = (options) => { device.adaptor = exports.name // We need to open the device in order to access _configDescriptor - debug(`Opening device: ${device.name}`) + debug(`Opening device: ${device.displayName}`) device.open() // Ensures we don't wait forever if an issue occurs