diff options
author | christian mueller <christian.ei.mueller@bmw.de> | 2012-02-09 13:17:11 +0100 |
---|---|---|
committer | christian mueller <christian.ei.mueller@bmw.de> | 2012-02-09 13:17:11 +0100 |
commit | 66ce11e941986259e4c403364e3ee7c8b09864f4 (patch) | |
tree | 967806ccc6a48f0cb06d2ebcc7a21992daeeb9b8 /AudioManagerDaemon | |
parent | d4627908f2f405b7b184bd47b2216adf5d4df486 (diff) | |
download | audiomanager-66ce11e941986259e4c403364e3ee7c8b09864f4.tar.gz |
* fix list domains in telnetserver
Diffstat (limited to 'AudioManagerDaemon')
-rw-r--r-- | AudioManagerDaemon/src/CAmTelnetMenuHelper.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/AudioManagerDaemon/src/CAmTelnetMenuHelper.cpp b/AudioManagerDaemon/src/CAmTelnetMenuHelper.cpp index f901fa8..d62b289 100644 --- a/AudioManagerDaemon/src/CAmTelnetMenuHelper.cpp +++ b/AudioManagerDaemon/src/CAmTelnetMenuHelper.cpp @@ -659,22 +659,23 @@ void CAmTelnetMenuHelper::listDomainsCommandExec(std::queue<std::string> & CmdQu /****************************************************************************/ { std::vector<am_Domain_s> listDomains; - std::vector<am_Domain_s>::iterator it; std::stringstream line; mDatabasehandler->getListDomains(listDomains); - line << "Current domains: " << listDomains.size(); + line << "\tCurrent domains: " << listDomains.size()<<std::endl; sendTelnetLine(filedescriptor,line); + std::vector<am_Domain_s>::iterator it(listDomains.begin()); while(it != listDomains.end()) { - line.clear(); + line.str(""); line << "\tID: " << it->domainID << "\tName: " << it->name << "\tBusname: " << it->busname << "\tNodename: " << it->nodename - << "\tState: " << it->state; + << "\tState: " << static_cast<int>(it->state) + << std::endl; sendTelnetLine(filedescriptor,line); it++; |