equal
deleted
inserted
replaced
66 |
66 |
67 /****************************************************************************/ |
67 /****************************************************************************/ |
68 |
68 |
69 void CommandDebug::execute(const StringVector &args) |
69 void CommandDebug::execute(const StringVector &args) |
70 { |
70 { |
|
71 MasterIndexList masterIndices; |
71 stringstream str; |
72 stringstream str; |
72 int debugLevel; |
73 int debugLevel; |
73 |
74 |
74 if (args.size() != 1) { |
75 if (args.size() != 1) { |
75 stringstream err; |
76 stringstream err; |
85 stringstream err; |
86 stringstream err; |
86 err << "Invalid debug level '" << args[0] << "'!"; |
87 err << "Invalid debug level '" << args[0] << "'!"; |
87 throwInvalidUsageException(err); |
88 throwInvalidUsageException(err); |
88 } |
89 } |
89 |
90 |
|
91 masterIndices = getMasterIndices(); |
90 MasterIndexList::const_iterator mi; |
92 MasterIndexList::const_iterator mi; |
91 for (mi = getMasterIndices().begin(); |
93 for (mi = masterIndices.begin(); |
92 mi != getMasterIndices().end(); mi++) { |
94 mi != masterIndices.end(); mi++) { |
93 MasterDevice m(*mi); |
95 MasterDevice m(*mi); |
94 m.open(MasterDevice::ReadWrite); |
96 m.open(MasterDevice::ReadWrite); |
95 m.setDebug(debugLevel); |
97 m.setDebug(debugLevel); |
96 } |
98 } |
97 } |
99 } |