diff options
author | RALOVICH, Kristof <tade60@freemail.hu> | 2015-06-10 23:32:49 +0200 |
---|---|---|
committer | RALOVICH, Kristof <tade60@freemail.hu> | 2015-06-10 23:32:49 +0200 |
commit | c5ceec2da9eead01c10108a91144cec47fd340b7 (patch) | |
tree | 9b9071cb283c6d35c317c452462461c5b53a6897 | |
parent | d4ca820063e1c7bf28d371e0ad606533c192d167 (diff) |
serial: clarify intent
-rw-r--r-- | src/Serial.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/Serial.cpp b/src/Serial.cpp index 5183aa8..e2c9212 100644 --- a/src/Serial.cpp +++ b/src/Serial.cpp @@ -49,7 +49,9 @@ Serial::instantiate(void*) bool usbserial_found=false; bool usbs_simple_found=false; if(!mods.is_open()) + { LOG(LOG_WARN) << "Could not open /proc/modules!\n"; + } else { while (mods.good()) @@ -64,17 +66,29 @@ Serial::instantiate(void*) } mods.close(); if(cp210x_found) + { LOG(LOG_DBG) << "Found loaded cp210x kernel module.\n"; + } else + { LOG(LOG_DBG) << "cp210x is not listed among loaded kernel modules.\n"; + } if(usbserial_found) + { LOG(LOG_DBG) << "Found loaded usbserial kernel module.\n"; + } else + { LOG(LOG_DBG) << "usbserial is not listed among loaded kernel modules.\n"; + } if(usbs_simple_found) + { LOG(LOG_DBG) << "Found loaded usb_serial_simple kernel module.\n"; + } else + { LOG(LOG_DBG) << "usb_serial_simple is not listed among loaded kernel modules.\n"; + } } #endif |