VirtualBox

Ignore:
Timestamp:
Mar 4, 2015 4:41:08 PM (10 years ago)
Author:
vboxsync
Message:

Main/HostDnsService: fixed a typo which prevented to pass any DNS server / domain / search string information to the NAT network; cosmetical logging fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/HostDnsService.cpp

    r54304 r54631  
    217217    // previous state. Here we have the previous state, so make sure we don't
    218218    // ever tell our clients about unchanged info.
    219     if (info.equals(m->info))
     219    if (!info.equals(m->info))
    220220    {
    221221        m->info = info;
     
    294294
    295295    LogRel(("HostDnsMonitorProxy::GetNameServers:\n"));
    296     dumpHostDnsStrVector("Name Server", m->info->servers);
     296    dumpHostDnsStrVector("name server", m->info->servers);
    297297
    298298    detachVectorOfString(m->info->servers, aNameServers);
     
    309309        updateInfo();
    310310
    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()));
    312313
    313314    *pDomainName = m->info->domain.c_str();
     
    325326
    326327    LogRel(("HostDnsMonitorProxy::GetSearchStrings:\n"));
    327     dumpHostDnsStrVector("Search String", m->info->searchList);
     328    dumpHostDnsStrVector("search string", m->info->searchList);
    328329
    329330    detachVectorOfString(m->info->searchList, aSearchStrings);
     
    366367static void dumpHostDnsInformation(const HostDnsInformation& info)
    367368{
    368     dumpHostDnsStrVector("DNS server", info.servers);
    369     dumpHostDnsStrVector("SearchString", info.searchList);
     369    dumpHostDnsStrVector("server", info.servers);
     370    dumpHostDnsStrVector("search string", info.searchList);
    370371
    371372    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"));
    373376}
    374377
     
    380383         it != v.end();
    381384         ++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.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette