From c52e82ac5b1c190214e070de88dbfc53e5f82cbf Mon Sep 17 00:00:00 2001 From: Matteo Suppo Date: Tue, 22 Sep 2015 14:52:04 +0200 Subject: [PATCH] Debug output of system_profiler --- seriallist_darwin.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/seriallist_darwin.go b/seriallist_darwin.go index d9eb3026f..69809660a 100644 --- a/seriallist_darwin.go +++ b/seriallist_darwin.go @@ -1,6 +1,7 @@ package main import ( + "log" "os/exec" "strings" ) @@ -44,6 +45,7 @@ func associateVidPidWithPort(ports []OsSerialPort) []OsSerialPort { cmdOutMap := make(map[string]string) for _, element := range cmdOutSlice { + log.Println(element) if strings.Contains(element, "ID") || strings.Contains(element, "Manufacturer") { element = strings.TrimSpace(element) arr := strings.Split(element, ": ")