[Pkg-running-devel] [antpm] 19/20: serial: clarify intent
Kristof Ralovich
ralovich-guest at moszumanska.debian.org
Sun Jun 28 12:26:52 UTC 2015
This is an automated email from the git hooks/post-receive script.
ralovich-guest pushed a commit to branch upstream
in repository antpm.
commit c5ceec2da9eead01c10108a91144cec47fd340b7
Author: RALOVICH, Kristof <tade60 at freemail.hu>
Date: Wed Jun 10 23:32:49 2015 +0200
serial: clarify intent
---
src/Serial.cpp | 14 ++++++++++++++
1 file changed, 14 insertions(+)
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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-running/antpm.git
More information about the Pkg-running-devel
mailing list