diff options
author | Martin Storsjo <martin@martin.st> | 2010-12-20 16:02:42 (GMT) |
---|---|---|
committer | Shane Kearns <shane.kearns@accenture.com> | 2010-12-20 16:03:07 (GMT) |
commit | d6a7931c5a2b90c0c276a1367135c9dc4e7532cd (patch) | |
tree | 4c9ee2ca9805b5e9f118f3b8e815769e323bc67a /tools/runonphone | |
parent | 11ea9609129205cd08dc5fbeb889cc60f4f84f65 (diff) | |
download | Qt-d6a7931c5a2b90c0c276a1367135c9dc4e7532cd.zip Qt-d6a7931c5a2b90c0c276a1367135c9dc4e7532cd.tar.gz Qt-d6a7931c5a2b90c0c276a1367135c9dc4e7532cd.tar.bz2 |
runonphone: Only print the modprobe instructions on linux
Merge-request: 834
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
Diffstat (limited to 'tools/runonphone')
-rw-r--r-- | tools/runonphone/serenum_unix.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/runonphone/serenum_unix.cpp b/tools/runonphone/serenum_unix.cpp index 93d8c67..86e797b 100644 --- a/tools/runonphone/serenum_unix.cpp +++ b/tools/runonphone/serenum_unix.cpp @@ -223,11 +223,15 @@ QList<SerialPortId> enumerateSerialPorts(int loglevel) << iface.manufacturer << "Product:" << iface.product +#ifdef Q_OS_LINUX << endl << " Load generic driver using:" << QString("sudo modprobe usbserial vendor=0x%1 product=0x%2") .arg(iface.manufacturerid, 4, 16, QChar('0')) .arg(iface.productid, 4, 16, QChar('0')); +#else + ; +#endif } } return list; |