summaryrefslogtreecommitdiff
path: root/AudioManagerDaemon
diff options
context:
space:
mode:
authorchristian mueller <christian.ei.mueller@bmw.de>2012-02-09 13:17:11 +0100
committerchristian mueller <christian.ei.mueller@bmw.de>2012-02-09 13:17:11 +0100
commit66ce11e941986259e4c403364e3ee7c8b09864f4 (patch)
tree967806ccc6a48f0cb06d2ebcc7a21992daeeb9b8 /AudioManagerDaemon
parentd4627908f2f405b7b184bd47b2216adf5d4df486 (diff)
downloadaudiomanager-66ce11e941986259e4c403364e3ee7c8b09864f4.tar.gz
* fix list domains in telnetserver
Diffstat (limited to 'AudioManagerDaemon')
-rw-r--r--AudioManagerDaemon/src/CAmTelnetMenuHelper.cpp9
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++;