[Pkg-running-devel] [antpm] 29/39: linux: look for usb_serial_simple too

Kristof Ralovich ralovich-guest at moszumanska.debian.org
Fri Nov 7 11:13:48 UTC 2014


This is an automated email from the git hooks/post-receive script.

ralovich-guest pushed a commit to branch upstream
in repository antpm.

commit 30147369276eef44349c6c867ee04ea200c4a359
Author: RALOVICH, Kristof <tade60 at freemail.hu>
Date:   Wed Aug 13 14:34:48 2014 +0200

    linux: look for usb_serial_simple too
    
    for 0fcf:1009 that's the kernel module
---
 src/Serial.cpp | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/Serial.cpp b/src/Serial.cpp
index 07de0bb..5183aa8 100644
--- a/src/Serial.cpp
+++ b/src/Serial.cpp
@@ -47,6 +47,7 @@ Serial::instantiate(void*)
   std::ifstream mods("/proc/modules");
   bool cp210x_found=false;
   bool usbserial_found=false;
+  bool usbs_simple_found=false;
   if(!mods.is_open())
     LOG(LOG_WARN) << "Could not open /proc/modules!\n";
   else
@@ -58,6 +59,8 @@ Serial::instantiate(void*)
         cp210x_found = true;
       if(line.find("usbserial ")==0)
         usbserial_found = true;
+      if(line.find("usb_serial_simple ")==0)
+        usbs_simple_found = true;
     }
     mods.close();
     if(cp210x_found)
@@ -68,6 +71,10 @@ Serial::instantiate(void*)
       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