Changeset 54631 in vbox for trunk/src/VBox/Main/src-server/HostDnsService.cpp
- Timestamp:
- Mar 4, 2015 4:41:08 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/HostDnsService.cpp
r54304 r54631 217 217 // previous state. Here we have the previous state, so make sure we don't 218 218 // ever tell our clients about unchanged info. 219 if ( info.equals(m->info))219 if (!info.equals(m->info)) 220 220 { 221 221 m->info = info; … … 294 294 295 295 LogRel(("HostDnsMonitorProxy::GetNameServers:\n")); 296 dumpHostDnsStrVector(" Name Server", m->info->servers);296 dumpHostDnsStrVector("name server", m->info->servers); 297 297 298 298 detachVectorOfString(m->info->servers, aNameServers); … … 309 309 updateInfo(); 310 310 311 LogRel(("HostDnsMonitorProxy::GetDomainName: %s\n", m->info->domain.c_str())); 311 LogRel(("HostDnsMonitorProxy::GetDomainName: %s\n", 312 m->info->domain.empty() ? "no domain set" : m->info->domain.c_str())); 312 313 313 314 *pDomainName = m->info->domain.c_str(); … … 325 326 326 327 LogRel(("HostDnsMonitorProxy::GetSearchStrings:\n")); 327 dumpHostDnsStrVector(" Search String", m->info->searchList);328 dumpHostDnsStrVector("search string", m->info->searchList); 328 329 329 330 detachVectorOfString(m->info->searchList, aSearchStrings); … … 366 367 static void dumpHostDnsInformation(const HostDnsInformation& info) 367 368 { 368 dumpHostDnsStrVector(" DNSserver", info.servers);369 dumpHostDnsStrVector(" SearchString", info.searchList);369 dumpHostDnsStrVector("server", info.servers); 370 dumpHostDnsStrVector("search string", info.searchList); 370 371 371 372 if (!info.domain.empty()) 372 LogRel(("DNS domain: %s\n", info.domain.c_str())); 373 LogRel((" domain: %s\n", info.domain.c_str())); 374 else 375 LogRel((" no domain set\n")); 373 376 } 374 377 … … 380 383 it != v.end(); 381 384 ++it, ++i) 382 LogRel(("%s %d: %s\n", prefix.c_str(), i, it->c_str())); 383 } 385 LogRel((" %s %d: %s\n", prefix.c_str(), i, it->c_str())); 386 if (v.empty()) 387 LogRel((" no %s entries\n", prefix.c_str())); 388 }
Note:
See TracChangeset
for help on using the changeset viewer.