VirtualBox

Ignore:
Timestamp:
Apr 25, 2008 9:54:23 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
30182
Message:

VBoxManage: small fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp

    r8373 r8382  
    12821282                            strAttachment = "nat";
    12831283                        }
    1284                         else if (strNetwork != "default")
     1284                        else if (!strNetwork.isEmpty())
    12851285                            strAttachment = Utf8StrFmt("NAT (%lS)", strNetwork.raw());
    12861286                        else
     
    13641364                             currentNIC + 1, strMACAddress.raw(), strAttachment.raw(),
    13651365                             fConnected ? "on" : "off",
    1366                              fTraceEnabled ? "on" : "off", traceFile.raw(),
     1366                             fTraceEnabled ? "on" : "off",
     1367                             traceFile.isEmpty() ? Bstr("none").raw() : traceFile.raw(),
    13671368                             strNICType.raw(),
    13681369                             ulLineSpeed / 1000);
     
    40504051                return errorArgument("Invalid IPv4 network '%s' specified -- CIDR notation expected.\n", argv[i + 1]);
    40514052            if (Netmask & 0x1f)
    4052                 return errorArgument("Prefix length of the NAT network must be less than 28\n");
     4053                return errorArgument("Prefix length of the NAT network must be less than 28.\n");
    40534054            natnet[n - 1] = argv[i + 1];
    40544055            i++;
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