Changeset 38735 in vbox for trunk/src/VBox
- Timestamp:
- Sep 13, 2011 1:25:16 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 74006
- Location:
- trunk/src/VBox
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp
r38636 r38735 1199 1199 if (info.isBasicAvailable()) 1200 1200 { 1201 RTPrintf("Error: failed to start machine. Error message: %l S\n", info.getText().raw());1201 RTPrintf("Error: failed to start machine. Error message: %ls\n", info.getText().raw()); 1202 1202 } 1203 1203 else -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageDisk.cpp
r38726 r38735 940 940 Bstr err; 941 941 CHECK_ERROR_BREAK(hardDisk, COMGETTER(LastAccessError)(err.asOutParam())); 942 RTPrintf("Access Error: %l S\n", err.raw());942 RTPrintf("Access Error: %ls\n", err.raw()); 943 943 } 944 944 … … 947 947 if (!description.isEmpty()) 948 948 { 949 RTPrintf("Description: %l S\n", description.raw());949 RTPrintf("Description: %ls\n", description.raw()); 950 950 } 951 951 … … 991 991 Bstr format; 992 992 hardDisk->COMGETTER(Format)(format.asOutParam()); 993 RTPrintf("Storage format: %l S\n", format.raw());993 RTPrintf("Storage format: %ls\n", format.raw()); 994 994 ULONG variant; 995 995 hardDisk->COMGETTER(Variant)(&variant); … … 1031 1031 machine->COMGETTER(Name)(name.asOutParam()); 1032 1032 machine->COMGETTER(Id)(uuid.asOutParam()); 1033 RTPrintf("%s%l S (UUID: %lS)\n",1033 RTPrintf("%s%ls (UUID: %ls)\n", 1034 1034 j == 0 ? "In use by VMs: " : " ", 1035 1035 name.raw(), machineIds[j]); … … 1041 1041 Bstr loc; 1042 1042 hardDisk->COMGETTER(Location)(loc.asOutParam()); 1043 RTPrintf("Location: %l S\n", loc.raw());1043 RTPrintf("Location: %ls\n", loc.raw()); 1044 1044 1045 1045 /* print out information specific for differencing hard disks */ -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestProp.cpp
r35951 r38735 107 107 RTPrintf("No value set!\n"); 108 108 else 109 RTPrintf("Value: %l S\n", value.raw());109 RTPrintf("Value: %ls\n", value.raw()); 110 110 if (!value.isEmpty() && verbose) 111 111 { 112 112 RTPrintf("Timestamp: %lld\n", i64Timestamp); 113 RTPrintf("Flags: %l S\n", flags.raw());113 RTPrintf("Flags: %ls\n", flags.raw()); 114 114 } 115 115 } … … 233 233 RTPrintf("No properties found.\n"); 234 234 for (unsigned i = 0; i < names.size(); ++i) 235 RTPrintf("Name: %l S, value: %lS, timestamp: %lld, flags: %lS\n",235 RTPrintf("Name: %ls, value: %ls, timestamp: %lld, flags: %ls\n", 236 236 names[i], values[i], timestamps[i], flags[i]); 237 237 } … … 337 337 gpcev->COMGETTER(Value)(aNextValue.asOutParam()); 338 338 gpcev->COMGETTER(Flags)(aNextFlags.asOutParam()); 339 RTPrintf("Name: %l S, value: %lS, flags: %lS\n",339 RTPrintf("Name: %ls, value: %ls, flags: %ls\n", 340 340 aNextName.raw(), aNextValue.raw(), aNextFlags.raw()); 341 341 fSignalled = true; -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHostonly.cpp
r38695 r38735 71 71 CHECK_ERROR(hif, COMGETTER(Name) (name.asOutParam())); 72 72 73 RTPrintf("Interface '%l S' was successfully created\n", name.raw());73 RTPrintf("Interface '%ls' was successfully created\n", name.raw()); 74 74 75 75 return 0; -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp
r38733 r38735 62 62 { 63 63 /* print with hierarchical numbering */ 64 RTPrintf("SnapshotName%l S=\"%lS\"\n", prefix.raw(), name.raw());65 RTPrintf("SnapshotUUID%l S=\"%s\"\n", prefix.raw(), Utf8Str(uuid).c_str());64 RTPrintf("SnapshotName%ls=\"%ls\"\n", prefix.raw(), name.raw()); 65 RTPrintf("SnapshotUUID%ls=\"%s\"\n", prefix.raw(), Utf8Str(uuid).c_str()); 66 66 } 67 67 else … … 69 69 /* print with indentation */ 70 70 bool fCurrent = (rootSnapshot == currentSnapshot); 71 RTPrintf(" %l SName: %lS(UUID: %s)%s\n",71 RTPrintf(" %lsName: %ls (UUID: %s)%s\n", 72 72 prefix.raw(), 73 73 name.raw(), … … 88 88 Bstr newPrefix; 89 89 if (details == VMINFO_MACHINEREADABLE) 90 newPrefix = Utf8StrFmt("%l S-%d", prefix.raw(), index + 1);90 newPrefix = Utf8StrFmt("%ls-%d", prefix.raw(), index + 1); 91 91 else 92 92 { 93 newPrefix = Utf8StrFmt("%l S", prefix.raw());93 newPrefix = Utf8StrFmt("%ls ", prefix.raw()); 94 94 } 95 95 … … 247 247 Bstr settingsFilePath; 248 248 rc = machine->COMGETTER(SettingsFilePath)(settingsFilePath.asOutParam()); 249 RTPrintf("Config file: %l S\n", settingsFilePath.raw());249 RTPrintf("Config file: %ls\n", settingsFilePath.raw()); 250 250 ComPtr<IVirtualBoxErrorInfo> accessError; 251 251 rc = machine->COMGETTER(AccessError)(accessError.asOutParam()); … … 264 264 if (details == VMINFO_COMPACT) 265 265 { 266 RTPrintf("\"%l S\" {%s}\n", machineName.raw(), Utf8Str(uuid).c_str());266 RTPrintf("\"%ls\" {%s}\n", machineName.raw(), Utf8Str(uuid).c_str()); 267 267 return S_OK; 268 268 } 269 269 270 270 if (details == VMINFO_MACHINEREADABLE) 271 RTPrintf("name=\"%l S\"\n", machineName.raw());272 else 273 RTPrintf("Name: %l S\n", machineName.raw());271 RTPrintf("name=\"%ls\"\n", machineName.raw()); 272 else 273 RTPrintf("Name: %ls\n", machineName.raw()); 274 274 275 275 Bstr osTypeId; … … 280 280 rc = osType->COMGETTER(Description)(osName.asOutParam()); 281 281 if (details == VMINFO_MACHINEREADABLE) 282 RTPrintf("ostype=\"%l S\"\n", osTypeId.raw());283 else 284 RTPrintf("Guest OS: %l S\n", osName.raw());282 RTPrintf("ostype=\"%ls\"\n", osTypeId.raw()); 283 else 284 RTPrintf("Guest OS: %ls\n", osName.raw()); 285 285 286 286 if (details == VMINFO_MACHINEREADABLE) … … 292 292 rc = machine->COMGETTER(SettingsFilePath)(settingsFilePath.asOutParam()); 293 293 if (details == VMINFO_MACHINEREADABLE) 294 RTPrintf("CfgFile=\"%l S\"\n", settingsFilePath.raw());295 else 296 RTPrintf("Config file: %l S\n", settingsFilePath.raw());294 RTPrintf("CfgFile=\"%ls\"\n", settingsFilePath.raw()); 295 else 296 RTPrintf("Config file: %ls\n", settingsFilePath.raw()); 297 297 298 298 Bstr snapshotFolder; 299 299 rc = machine->COMGETTER(SnapshotFolder)(snapshotFolder.asOutParam()); 300 300 if (details == VMINFO_MACHINEREADABLE) 301 RTPrintf("SnapFldr=\"%l S\"\n", snapshotFolder.raw());302 else 303 RTPrintf("Snapshot folder: %l S\n", snapshotFolder.raw());301 RTPrintf("SnapFldr=\"%ls\"\n", snapshotFolder.raw()); 302 else 303 RTPrintf("Snapshot folder: %ls\n", snapshotFolder.raw()); 304 304 305 305 Bstr logFolder; 306 306 rc = machine->COMGETTER(LogFolder)(logFolder.asOutParam()); 307 307 if (details == VMINFO_MACHINEREADABLE) 308 RTPrintf("LogFldr=\"%l S\"\n", logFolder.raw());309 else 310 RTPrintf("Log folder: %l S\n", logFolder.raw());308 RTPrintf("LogFldr=\"%ls\"\n", logFolder.raw()); 309 else 310 RTPrintf("Log folder: %ls\n", logFolder.raw()); 311 311 312 312 Bstr strHardwareUuid; 313 313 rc = machine->COMGETTER(HardwareUUID)(strHardwareUuid.asOutParam()); 314 314 if (details == VMINFO_MACHINEREADABLE) 315 RTPrintf("hardwareuuid=\"%l S\"\n", strHardwareUuid.raw());316 else 317 RTPrintf("Hardware UUID: %l S\n", strHardwareUuid.raw());315 RTPrintf("hardwareuuid=\"%ls\"\n", strHardwareUuid.raw()); 316 else 317 RTPrintf("Hardware UUID: %ls\n", strHardwareUuid.raw()); 318 318 319 319 ULONG memorySize; … … 622 622 RTPrintf("VMStateChangeTime=\"%s\"\n", pszTime); 623 623 if (!stateFile.isEmpty()) 624 RTPrintf("VMStateFile=\"%l S\"\n", stateFile.raw());624 RTPrintf("VMStateFile=\"%ls\"\n", stateFile.raw()); 625 625 } 626 626 else … … 667 667 machine->COMGETTER(TeleporterAddress)(teleporterAddress.asOutParam()); 668 668 if (details == VMINFO_MACHINEREADABLE) 669 RTPrintf("teleporteraddress=\"%l S\"\n", teleporterAddress.raw());670 else 671 RTPrintf("Teleporter Address: %l S\n", teleporterAddress.raw());669 RTPrintf("teleporteraddress=\"%ls\"\n", teleporterAddress.raw()); 670 else 671 RTPrintf("Teleporter Address: %ls\n", teleporterAddress.raw()); 672 672 673 673 Bstr teleporterPassword; 674 674 machine->COMGETTER(TeleporterPassword)(teleporterPassword.asOutParam()); 675 675 if (details == VMINFO_MACHINEREADABLE) 676 RTPrintf("teleporterpassword=\"%l S\"\n", teleporterPassword.raw());677 else 678 RTPrintf("Teleporter Password: %l S\n", teleporterPassword.raw());676 RTPrintf("teleporterpassword=\"%ls\"\n", teleporterPassword.raw()); 677 else 678 RTPrintf("Teleporter Password: %ls\n", teleporterPassword.raw()); 679 679 680 680 /* … … 694 694 storageCtl->COMGETTER(Name)(storageCtlName.asOutParam()); 695 695 if (details == VMINFO_MACHINEREADABLE) 696 RTPrintf("storagecontrollername%u=\"%l S\"\n", i, storageCtlName.raw());696 RTPrintf("storagecontrollername%u=\"%ls\"\n", i, storageCtlName.raw()); 697 697 else 698 RTPrintf("Storage Controller Name (%u): %l S\n", i, storageCtlName.raw());698 RTPrintf("Storage Controller Name (%u): %ls\n", i, storageCtlName.raw()); 699 699 700 700 storageCtl->COMGETTER(ControllerType)(&enmCtlType); … … 800 800 if (details == VMINFO_MACHINEREADABLE) 801 801 { 802 RTPrintf("\"%l S-%d-%d\"=\"%lS\"\n", storageCtlName.raw(),802 RTPrintf("\"%ls-%d-%d\"=\"%ls\"\n", storageCtlName.raw(), 803 803 i, k, filePath.raw()); 804 RTPrintf("\"%l S-ImageUUID-%d-%d\"=\"%s\"\n",804 RTPrintf("\"%ls-ImageUUID-%d-%d\"=\"%s\"\n", 805 805 storageCtlName.raw(), i, k, Utf8Str(uuid).c_str()); 806 806 if (fPassthrough) 807 RTPrintf("\"%l S-dvdpassthrough\"=\"%s\"\n", storageCtlName.raw(),807 RTPrintf("\"%ls-dvdpassthrough\"=\"%s\"\n", storageCtlName.raw(), 808 808 fPassthrough ? "on" : "off"); 809 809 if (devType == DeviceType_DVD) 810 810 { 811 RTPrintf("\"%l S-tempeject\"=\"%s\"\n", storageCtlName.raw(),811 RTPrintf("\"%ls-tempeject\"=\"%s\"\n", storageCtlName.raw(), 812 812 fTempEject ? "on" : "off"); 813 RTPrintf("\"%l S-IsEjected\"=\"%s\"\n", storageCtlName.raw(),813 RTPrintf("\"%ls-IsEjected\"=\"%s\"\n", storageCtlName.raw(), 814 814 fIsEjected ? "on" : "off"); 815 815 } … … 817 817 else 818 818 { 819 RTPrintf("%l S (%d, %d): %lS(UUID: %s)",819 RTPrintf("%ls (%d, %d): %ls (UUID: %s)", 820 820 storageCtlName.raw(), i, k, filePath.raw(), 821 821 Utf8Str(uuid).c_str()); … … 833 833 if (details == VMINFO_MACHINEREADABLE) 834 834 { 835 RTPrintf("\"%l S-%d-%d\"=\"emptydrive\"\n", storageCtlName.raw(), i, k);835 RTPrintf("\"%ls-%d-%d\"=\"emptydrive\"\n", storageCtlName.raw(), i, k); 836 836 if (devType == DeviceType_DVD) 837 RTPrintf("\"%l S-IsEjected\"=\"%s\"\n", storageCtlName.raw(),837 RTPrintf("\"%ls-IsEjected\"=\"%s\"\n", storageCtlName.raw(), 838 838 fIsEjected ? "on" : "off"); 839 839 } 840 840 else 841 841 { 842 RTPrintf("%l S(%d, %d): Empty", storageCtlName.raw(), i, k);842 RTPrintf("%ls (%d, %d): Empty", storageCtlName.raw(), i, k); 843 843 if (fTempEject) 844 844 RTPrintf(" (temp eject)"); … … 851 851 { 852 852 if (details == VMINFO_MACHINEREADABLE) 853 RTPrintf("\"%l S-%d-%d\"=\"none\"\n", storageCtlName.raw(), i, k);853 RTPrintf("\"%ls-%d-%d\"=\"none\"\n", storageCtlName.raw(), i, k); 854 854 } 855 855 } … … 977 977 if (details == VMINFO_MACHINEREADABLE) 978 978 { 979 RTPrintf("natnet%d=\"%l S\"\n", currentNIC + 1, strNetwork.length() ? strNetwork.raw(): Bstr("nat").raw());979 RTPrintf("natnet%d=\"%ls\"\n", currentNIC + 1, strNetwork.length() ? strNetwork.raw(): Bstr("nat").raw()); 980 980 strAttachment = "nat"; 981 981 strNatSettings = Utf8StrFmt("mtu=\"%d\"\nsockSnd=\"%d\"\nsockRcv=\"%d\"\ntcpWndSnd=\"%d\"\ntcpWndRcv=\"%d\"\n", … … 997 997 if (details == VMINFO_MACHINEREADABLE) 998 998 { 999 RTPrintf("bridgeadapter%d=\"%l S\"\n", currentNIC + 1, strBridgeAdp.raw());999 RTPrintf("bridgeadapter%d=\"%ls\"\n", currentNIC + 1, strBridgeAdp.raw()); 1000 1000 strAttachment = "bridged"; 1001 1001 } 1002 1002 else 1003 strAttachment = Utf8StrFmt("Bridged Interface '%l S'", strBridgeAdp.raw());1003 strAttachment = Utf8StrFmt("Bridged Interface '%ls'", strBridgeAdp.raw()); 1004 1004 break; 1005 1005 } … … 1011 1011 if (details == VMINFO_MACHINEREADABLE) 1012 1012 { 1013 RTPrintf("intnet%d=\"%l S\"\n", currentNIC + 1, strNetwork.raw());1013 RTPrintf("intnet%d=\"%ls\"\n", currentNIC + 1, strNetwork.raw()); 1014 1014 strAttachment = "intnet"; 1015 1015 } … … 1025 1025 if (details == VMINFO_MACHINEREADABLE) 1026 1026 { 1027 RTPrintf("hostonlyadapter%d=\"%l S\"\n", currentNIC + 1, strHostonlyAdp.raw());1027 RTPrintf("hostonlyadapter%d=\"%ls\"\n", currentNIC + 1, strHostonlyAdp.raw()); 1028 1028 strAttachment = "hostonly"; 1029 1029 } 1030 1030 else 1031 strAttachment = Utf8StrFmt("Host-only Interface '%l S'", strHostonlyAdp.raw());1031 strAttachment = Utf8StrFmt("Host-only Interface '%ls'", strHostonlyAdp.raw()); 1032 1032 break; 1033 1033 } … … 1038 1038 if (details == VMINFO_MACHINEREADABLE) 1039 1039 { 1040 RTPrintf("generic%d=\"%l S\"\n", currentNIC + 1, strGenericDriver.raw());1040 RTPrintf("generic%d=\"%ls\"\n", currentNIC + 1, strGenericDriver.raw()); 1041 1041 strAttachment = "Generic"; 1042 1042 } 1043 1043 else 1044 1044 { 1045 strAttachment = Utf8StrFmt("Generic '%l S'", strGenericDriver.raw());1045 strAttachment = Utf8StrFmt("Generic '%ls'", strGenericDriver.raw()); 1046 1046 1047 1047 // show the generic properties … … 1055 1055 strAttachment += " { "; 1056 1056 for (unsigned i = 0; i < aProperties.size(); ++i) 1057 strAttachment += Utf8StrFmt(!i ? "%l S='%lS'" : ", %lS='%lS'",1057 strAttachment += Utf8StrFmt(!i ? "%ls='%ls'" : ", %ls='%ls'", 1058 1058 aProperties[i], aValues[i]); 1059 1059 strAttachment += " }"; … … 1118 1118 if (details == VMINFO_MACHINEREADABLE) 1119 1119 { 1120 RTPrintf("macaddress%d=\"%l S\"\n", currentNIC + 1, strMACAddress.raw());1120 RTPrintf("macaddress%d=\"%ls\"\n", currentNIC + 1, strMACAddress.raw()); 1121 1121 RTPrintf("cableconnected%d=\"%s\"\n", currentNIC + 1, fConnected ? "on" : "off"); 1122 1122 RTPrintf("nic%d=\"%s\"\n", currentNIC + 1, strAttachment.c_str()); 1123 1123 } 1124 1124 else 1125 RTPrintf("NIC %u: MAC: %l S, Attachment: %s, Cable connected: %s, Trace: %s (file: %lS), Type: %s, Reported speed: %d Mbps, Boot priority: %d, Promisc Policy: %s\n",1125 RTPrintf("NIC %u: MAC: %ls, Attachment: %s, Cable connected: %s, Trace: %s (file: %ls), Type: %s, Reported speed: %d Mbps, Boot priority: %d, Promisc Policy: %s\n", 1126 1126 currentNIC + 1, strMACAddress.raw(), strAttachment.c_str(), 1127 1127 fConnected ? "on" : "off", … … 1256 1256 case PortMode_RawFile: 1257 1257 if (details == VMINFO_MACHINEREADABLE) 1258 RTPrintf("uartmode%d=\"%l S\"\n", currentUART + 1,1258 RTPrintf("uartmode%d=\"%ls\"\n", currentUART + 1, 1259 1259 path.raw()); 1260 1260 else 1261 RTPrintf(", attached to raw file '%l S'\n",1261 RTPrintf(", attached to raw file '%ls'\n", 1262 1262 path.raw()); 1263 1263 break; 1264 1264 case PortMode_HostPipe: 1265 1265 if (details == VMINFO_MACHINEREADABLE) 1266 RTPrintf("uartmode%d=\"%s,%l S\"\n", currentUART + 1,1266 RTPrintf("uartmode%d=\"%s,%ls\"\n", currentUART + 1, 1267 1267 fServer ? "server" : "client", path.raw()); 1268 1268 else 1269 RTPrintf(", attached to pipe (%s) '%l S'\n",1269 RTPrintf(", attached to pipe (%s) '%ls'\n", 1270 1270 fServer ? "server" : "client", path.raw()); 1271 1271 break; 1272 1272 case PortMode_HostDevice: 1273 1273 if (details == VMINFO_MACHINEREADABLE) 1274 RTPrintf("uartmode%d=\"%l S\"\n", currentUART + 1,1274 RTPrintf("uartmode%d=\"%ls\"\n", currentUART + 1, 1275 1275 path.raw()); 1276 1276 else 1277 RTPrintf(", attached to device '%l S'\n", path.raw());1277 RTPrintf(", attached to device '%ls'\n", path.raw()); 1278 1278 break; 1279 1279 } … … 1530 1530 RTPrintf("vrde=\"on\"\n"); 1531 1531 RTPrintf("vrdeport=%d\n", currentPort); 1532 RTPrintf("vrdeports=\"%l S\"\n", ports.raw());1533 RTPrintf("vrdeaddress=\"%l S\"\n", address.raw());1532 RTPrintf("vrdeports=\"%ls\"\n", ports.raw()); 1533 RTPrintf("vrdeaddress=\"%ls\"\n", address.raw()); 1534 1534 RTPrintf("vrdeauthtype=\"%s\"\n", strAuthType); 1535 1535 RTPrintf("vrdemulticon=\"%s\"\n", fMultiCon ? "on" : "off"); … … 1537 1537 RTPrintf("vrdevideochannel=\"%s\"\n", fVideoChannel ? "on" : "off"); 1538 1538 if (fVideoChannel) 1539 RTPrintf("vrdevideochannelquality=\"%l S\"\n", videoChannelQuality.raw());1539 RTPrintf("vrdevideochannelquality=\"%ls\"\n", videoChannelQuality.raw()); 1540 1540 } 1541 1541 else … … 1543 1543 if (address.isEmpty()) 1544 1544 address = "0.0.0.0"; 1545 RTPrintf("VRDE: enabled (Address %l S, Ports %lS, MultiConn: %s, ReuseSingleConn: %s, Authentication type: %s)\n", address.raw(), ports.raw(), fMultiCon ? "on" : "off", fReuseCon ? "on" : "off", strAuthType);1545 RTPrintf("VRDE: enabled (Address %ls, Ports %ls, MultiConn: %s, ReuseSingleConn: %s, Authentication type: %s)\n", address.raw(), ports.raw(), fMultiCon ? "on" : "off", fReuseCon ? "on" : "off", strAuthType); 1546 1546 if (console && currentPort != -1 && currentPort != 0) 1547 1547 RTPrintf("VRDE port: %d\n", currentPort); 1548 1548 if (fVideoChannel) 1549 RTPrintf("Video redirection: enabled (Quality %l S)\n", videoChannelQuality.raw());1549 RTPrintf("Video redirection: enabled (Quality %ls)\n", videoChannelQuality.raw()); 1550 1550 else 1551 1551 RTPrintf("Video redirection: disabled\n"); … … 1562 1562 { 1563 1563 if (value.isEmpty()) 1564 RTPrintf("vrdeproperty[%l S]=<not set>\n", aProperties[i]);1564 RTPrintf("vrdeproperty[%ls]=<not set>\n", aProperties[i]); 1565 1565 else 1566 RTPrintf("vrdeproperty[%l S]=\"%lS\"\n", aProperties[i], value.raw());1566 RTPrintf("vrdeproperty[%ls]=\"%ls\"\n", aProperties[i], value.raw()); 1567 1567 } 1568 1568 else … … 1571 1571 RTPrintf("VRDE property: %-10lS = <not set>\n", aProperties[i]); 1572 1572 else 1573 RTPrintf("VRDE property: %-10lS = \"%l S\"\n", aProperties[i], value.raw());1573 RTPrintf("VRDE property: %-10lS = \"%ls\"\n", aProperties[i], value.raw()); 1574 1574 } 1575 1575 } … … 1643 1643 CHECK_ERROR_RET(DevPtr, COMGETTER(Name)(bstr.asOutParam()), rc); 1644 1644 if (details == VMINFO_MACHINEREADABLE) 1645 RTPrintf("USBFilterName%zu=\"%l S\"\n", index + 1, bstr.raw());1645 RTPrintf("USBFilterName%zu=\"%ls\"\n", index + 1, bstr.raw()); 1646 1646 else 1647 RTPrintf("Name: %l S\n", bstr.raw());1647 RTPrintf("Name: %ls\n", bstr.raw()); 1648 1648 CHECK_ERROR_RET(DevPtr, COMGETTER(VendorId)(bstr.asOutParam()), rc); 1649 1649 if (details == VMINFO_MACHINEREADABLE) 1650 RTPrintf("USBFilterVendorId%zu=\"%l S\"\n", index + 1, bstr.raw());1650 RTPrintf("USBFilterVendorId%zu=\"%ls\"\n", index + 1, bstr.raw()); 1651 1651 else 1652 RTPrintf("VendorId: %l S\n", bstr.raw());1652 RTPrintf("VendorId: %ls\n", bstr.raw()); 1653 1653 CHECK_ERROR_RET(DevPtr, COMGETTER(ProductId)(bstr.asOutParam()), rc); 1654 1654 if (details == VMINFO_MACHINEREADABLE) 1655 RTPrintf("USBFilterProductId%zu=\"%l S\"\n", index + 1, bstr.raw());1655 RTPrintf("USBFilterProductId%zu=\"%ls\"\n", index + 1, bstr.raw()); 1656 1656 else 1657 RTPrintf("ProductId: %l S\n", bstr.raw());1657 RTPrintf("ProductId: %ls\n", bstr.raw()); 1658 1658 CHECK_ERROR_RET(DevPtr, COMGETTER(Revision)(bstr.asOutParam()), rc); 1659 1659 if (details == VMINFO_MACHINEREADABLE) 1660 RTPrintf("USBFilterRevision%zu=\"%l S\"\n", index + 1, bstr.raw());1660 RTPrintf("USBFilterRevision%zu=\"%ls\"\n", index + 1, bstr.raw()); 1661 1661 else 1662 RTPrintf("Revision: %l S\n", bstr.raw());1662 RTPrintf("Revision: %ls\n", bstr.raw()); 1663 1663 CHECK_ERROR_RET(DevPtr, COMGETTER(Manufacturer)(bstr.asOutParam()), rc); 1664 1664 if (details == VMINFO_MACHINEREADABLE) 1665 RTPrintf("USBFilterManufacturer%zu=\"%l S\"\n", index + 1, bstr.raw());1665 RTPrintf("USBFilterManufacturer%zu=\"%ls\"\n", index + 1, bstr.raw()); 1666 1666 else 1667 RTPrintf("Manufacturer: %l S\n", bstr.raw());1667 RTPrintf("Manufacturer: %ls\n", bstr.raw()); 1668 1668 CHECK_ERROR_RET(DevPtr, COMGETTER(Product)(bstr.asOutParam()), rc); 1669 1669 if (details == VMINFO_MACHINEREADABLE) 1670 RTPrintf("USBFilterProduct%zu=\"%l S\"\n", index + 1, bstr.raw());1670 RTPrintf("USBFilterProduct%zu=\"%ls\"\n", index + 1, bstr.raw()); 1671 1671 else 1672 RTPrintf("Product: %l S\n", bstr.raw());1672 RTPrintf("Product: %ls\n", bstr.raw()); 1673 1673 CHECK_ERROR_RET(DevPtr, COMGETTER(Remote)(bstr.asOutParam()), rc); 1674 1674 if (details == VMINFO_MACHINEREADABLE) 1675 RTPrintf("USBFilterRemote%zu=\"%l S\"\n", index + 1, bstr.raw());1675 RTPrintf("USBFilterRemote%zu=\"%ls\"\n", index + 1, bstr.raw()); 1676 1676 else 1677 RTPrintf("Remote: %l S\n", bstr.raw());1677 RTPrintf("Remote: %ls\n", bstr.raw()); 1678 1678 CHECK_ERROR_RET(DevPtr, COMGETTER(SerialNumber)(bstr.asOutParam()), rc); 1679 1679 if (details == VMINFO_MACHINEREADABLE) 1680 RTPrintf("USBFilterSerialNumber%zu=\"%l S\"\n", index + 1, bstr.raw());1680 RTPrintf("USBFilterSerialNumber%zu=\"%ls\"\n", index + 1, bstr.raw()); 1681 1681 else 1682 RTPrintf("Serial Number: %l S\n", bstr.raw());1682 RTPrintf("Serial Number: %ls\n", bstr.raw()); 1683 1683 if (details != VMINFO_MACHINEREADABLE) 1684 1684 { … … 1749 1749 { 1750 1750 if (details == VMINFO_MACHINEREADABLE) 1751 RTPrintf("USBRemoteManufacturer%zu=\"%l S\"\n", index + 1, bstr.raw());1751 RTPrintf("USBRemoteManufacturer%zu=\"%ls\"\n", index + 1, bstr.raw()); 1752 1752 else 1753 RTPrintf("Manufacturer: %l S\n", bstr.raw());1753 RTPrintf("Manufacturer: %ls\n", bstr.raw()); 1754 1754 } 1755 1755 CHECK_ERROR_RET(dev, COMGETTER(Product)(bstr.asOutParam()), rc); … … 1757 1757 { 1758 1758 if (details == VMINFO_MACHINEREADABLE) 1759 RTPrintf("USBRemoteProduct%zu=\"%l S\"\n", index + 1, bstr.raw());1759 RTPrintf("USBRemoteProduct%zu=\"%ls\"\n", index + 1, bstr.raw()); 1760 1760 else 1761 RTPrintf("Product: %l S\n", bstr.raw());1761 RTPrintf("Product: %ls\n", bstr.raw()); 1762 1762 } 1763 1763 CHECK_ERROR_RET(dev, COMGETTER(SerialNumber)(bstr.asOutParam()), rc); … … 1765 1765 { 1766 1766 if (details == VMINFO_MACHINEREADABLE) 1767 RTPrintf("USBRemoteSerialNumber%zu=\"%l S\"\n", index + 1, bstr.raw());1767 RTPrintf("USBRemoteSerialNumber%zu=\"%ls\"\n", index + 1, bstr.raw()); 1768 1768 else 1769 RTPrintf("SerialNumber: %l S\n", bstr.raw());1769 RTPrintf("SerialNumber: %ls\n", bstr.raw()); 1770 1770 } 1771 1771 CHECK_ERROR_RET(dev, COMGETTER(Address)(bstr.asOutParam()), rc); … … 1773 1773 { 1774 1774 if (details == VMINFO_MACHINEREADABLE) 1775 RTPrintf("USBRemoteAddress%zu=\"%l S\"\n", index + 1, bstr.raw());1775 RTPrintf("USBRemoteAddress%zu=\"%ls\"\n", index + 1, bstr.raw()); 1776 1776 else 1777 RTPrintf("Address: %l S\n", bstr.raw());1777 RTPrintf("Address: %ls\n", bstr.raw()); 1778 1778 } 1779 1779 … … 1838 1838 { 1839 1839 if (details == VMINFO_MACHINEREADABLE) 1840 RTPrintf("USBAttachedManufacturer%zu=\"%l S\"\n", index + 1, bstr.raw());1840 RTPrintf("USBAttachedManufacturer%zu=\"%ls\"\n", index + 1, bstr.raw()); 1841 1841 else 1842 RTPrintf("Manufacturer: %l S\n", bstr.raw());1842 RTPrintf("Manufacturer: %ls\n", bstr.raw()); 1843 1843 } 1844 1844 CHECK_ERROR_RET(dev, COMGETTER(Product)(bstr.asOutParam()), rc); … … 1846 1846 { 1847 1847 if (details == VMINFO_MACHINEREADABLE) 1848 RTPrintf("USBAttachedProduct%zu=\"%l S\"\n", index + 1, bstr.raw());1848 RTPrintf("USBAttachedProduct%zu=\"%ls\"\n", index + 1, bstr.raw()); 1849 1849 else 1850 RTPrintf("Product: %l S\n", bstr.raw());1850 RTPrintf("Product: %ls\n", bstr.raw()); 1851 1851 } 1852 1852 CHECK_ERROR_RET(dev, COMGETTER(SerialNumber)(bstr.asOutParam()), rc); … … 1854 1854 { 1855 1855 if (details == VMINFO_MACHINEREADABLE) 1856 RTPrintf("USBAttachedSerialNumber%zu=\"%l S\"\n", index + 1, bstr.raw());1856 RTPrintf("USBAttachedSerialNumber%zu=\"%ls\"\n", index + 1, bstr.raw()); 1857 1857 else 1858 RTPrintf("SerialNumber: %l S\n", bstr.raw());1858 RTPrintf("SerialNumber: %ls\n", bstr.raw()); 1859 1859 } 1860 1860 CHECK_ERROR_RET(dev, COMGETTER(Address)(bstr.asOutParam()), rc); … … 1862 1862 { 1863 1863 if (details == VMINFO_MACHINEREADABLE) 1864 RTPrintf("USBAttachedAddress%zu=\"%l S\"\n", index + 1, bstr.raw());1864 RTPrintf("USBAttachedAddress%zu=\"%ls\"\n", index + 1, bstr.raw()); 1865 1865 else 1866 RTPrintf("Address: %l S\n", bstr.raw());1866 RTPrintf("Address: %ls\n", bstr.raw()); 1867 1867 } 1868 1868 … … 1903 1903 RTPrintf("AttachedHostPci=%s,%s\n", szHostPciAddress, szGuestPciAddress); 1904 1904 else 1905 RTPrintf(" Host device %l Sat %s attached as %s\n", DevName.raw(), szHostPciAddress, szGuestPciAddress);1905 RTPrintf(" Host device %ls at %s attached as %s\n", DevName.raw(), szHostPciAddress, szGuestPciAddress); 1906 1906 } 1907 1907 … … 1932 1932 sf->COMGETTER(Name)(name.asOutParam()); 1933 1933 sf->COMGETTER(HostPath)(hostPath.asOutParam()); 1934 RTPrintf("Name: '%l S', Host path: '%lS' (global mapping)\n", name.raw(), hostPath.raw());1934 RTPrintf("Name: '%ls', Host path: '%ls' (global mapping)\n", name.raw(), hostPath.raw()); 1935 1935 ++numSharedFolders; 1936 1936 } … … 1956 1956 if (details == VMINFO_MACHINEREADABLE) 1957 1957 { 1958 RTPrintf("SharedFolderNameMachineMapping%zu=\"%l S\"\n", i + 1,1958 RTPrintf("SharedFolderNameMachineMapping%zu=\"%ls\"\n", i + 1, 1959 1959 name.raw()); 1960 RTPrintf("SharedFolderPathMachineMapping%zu=\"%l S\"\n", i + 1,1960 RTPrintf("SharedFolderPathMachineMapping%zu=\"%ls\"\n", i + 1, 1961 1961 hostPath.raw()); 1962 1962 } 1963 1963 else 1964 RTPrintf("Name: '%l S', Host path: '%lS' (machine mapping), %s\n",1964 RTPrintf("Name: '%ls', Host path: '%ls' (machine mapping), %s\n", 1965 1965 name.raw(), hostPath.raw(), writable ? "writable" : "readonly"); 1966 1966 ++numSharedFolders; … … 1985 1985 if (details == VMINFO_MACHINEREADABLE) 1986 1986 { 1987 RTPrintf("SharedFolderNameTransientMapping%zu=\"%l S\"\n", i + 1,1987 RTPrintf("SharedFolderNameTransientMapping%zu=\"%ls\"\n", i + 1, 1988 1988 name.raw()); 1989 RTPrintf("SharedFolderPathTransientMapping%zu=\"%l S\"\n", i + 1,1989 RTPrintf("SharedFolderPathTransientMapping%zu=\"%ls\"\n", i + 1, 1990 1990 hostPath.raw()); 1991 1991 } 1992 1992 else 1993 RTPrintf("Name: '%l S', Host path: '%lS' (transient mapping)\n", name.raw(), hostPath.raw());1993 RTPrintf("Name: '%ls', Host path: '%ls' (transient mapping)\n", name.raw(), hostPath.raw()); 1994 1994 ++numSharedFolders; 1995 1995 } … … 2106 2106 if (details == VMINFO_MACHINEREADABLE) 2107 2107 { 2108 RTPrintf("VRDEUserName=\"%l S\"\n", User.raw());2109 RTPrintf("VRDEDomain=\"%l S\"\n", Domain.raw());2110 RTPrintf("VRDEClientName=\"%l S\"\n", ClientName.raw());2111 RTPrintf("VRDEClientIP=\"%l S\"\n", ClientIP.raw());2108 RTPrintf("VRDEUserName=\"%ls\"\n", User.raw()); 2109 RTPrintf("VRDEDomain=\"%ls\"\n", Domain.raw()); 2110 RTPrintf("VRDEClientName=\"%ls\"\n", ClientName.raw()); 2111 RTPrintf("VRDEClientIP=\"%ls\"\n", ClientIP.raw()); 2112 2112 RTPrintf("VRDEClientVersion=%d\n", ClientVersion); 2113 2113 RTPrintf("VRDEEncryption=\"%s\"\n", EncryptionStyle == 0? "RDP4": "RDP5 (X.509)"); … … 2115 2115 else 2116 2116 { 2117 RTPrintf("User name: %l S\n", User.raw());2118 RTPrintf("Domain: %l S\n", Domain.raw());2119 RTPrintf("Client name: %l S\n", ClientName.raw());2120 RTPrintf("Client IP: %l S\n", ClientIP.raw());2117 RTPrintf("User name: %ls\n", User.raw()); 2118 RTPrintf("Domain: %ls\n", Domain.raw()); 2119 RTPrintf("Client name: %ls\n", ClientName.raw()); 2120 RTPrintf("Client IP: %ls\n", ClientIP.raw()); 2121 2121 RTPrintf("Client version: %d\n", ClientVersion); 2122 2122 RTPrintf("Encryption: %s\n", EncryptionStyle == 0? "RDP4": "RDP5 (X.509)"); … … 2138 2138 { 2139 2139 if (details == VMINFO_MACHINEREADABLE) 2140 RTPrintf("description=\"%l S\"\n", description.raw());2140 RTPrintf("description=\"%ls\"\n", description.raw()); 2141 2141 else 2142 RTPrintf("Description:\n%l S\n", description.raw());2142 RTPrintf("Description:\n%ls\n", description.raw()); 2143 2143 } 2144 2144 } … … 2170 2170 { 2171 2171 if (details == VMINFO_MACHINEREADABLE) 2172 RTPrintf("GuestOSType=\"%l S\"\n", guestString.raw());2172 RTPrintf("GuestOSType=\"%ls\"\n", guestString.raw()); 2173 2173 else 2174 RTPrintf("OS type: %l S\n", guestString.raw());2174 RTPrintf("OS type: %ls\n", guestString.raw()); 2175 2175 } 2176 2176 … … 2190 2190 { 2191 2191 if (details == VMINFO_MACHINEREADABLE) 2192 RTPrintf("GuestAdditionsVersion=\"%l S\"\n", guestString.raw());2192 RTPrintf("GuestAdditionsVersion=\"%ls\"\n", guestString.raw()); 2193 2193 else 2194 RTPrintf("Additions version: %l S\n\n", guestString.raw());2194 RTPrintf("Additions version: %ls\n\n", guestString.raw()); 2195 2195 } 2196 2196 … … 2215 2215 CHECK_ERROR_RET(fac, COMGETTER(LastUpdated)(&lLastUpdatedMS), rc); 2216 2216 if (details == VMINFO_MACHINEREADABLE) 2217 RTPrintf("GuestAdditionsFacility_%l S=%u,%lld\n",2217 RTPrintf("GuestAdditionsFacility_%ls=%u,%lld\n", 2218 2218 guestString.raw(), curStatus, lLastUpdatedMS); 2219 2219 else 2220 2220 { 2221 2221 makeTimeStr(szLastUpdated, sizeof(szLastUpdated), lLastUpdatedMS); 2222 RTPrintf("Facility \"%l S\": %s (last update: %s)\n",2222 RTPrintf("Facility \"%ls\": %s (last update: %s)\n", 2223 2223 guestString.raw(), facilityStateToName(curStatus, false /* No short naming */), szLastUpdated); 2224 2224 } -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageList.cpp
r38733 r38735 89 89 Bstr format; 90 90 pMedium->COMGETTER(Format)(format.asOutParam()); 91 RTPrintf("Format: %l S\n", format.raw());91 RTPrintf("Format: %ls\n", format.raw()); 92 92 Bstr filepath; 93 93 pMedium->COMGETTER(Location)(filepath.asOutParam()); 94 RTPrintf("Location: %l S\n", filepath.raw());94 RTPrintf("Location: %ls\n", filepath.raw()); 95 95 96 96 MediumState_T enmState; … … 158 158 Bstr name; 159 159 machine->COMGETTER(Name)(name.asOutParam()); 160 RTPrintf("%s%l S (UUID: %lS)",160 RTPrintf("%s%ls (UUID: %ls)", 161 161 j == 0 ? "Usage: " : " ", 162 162 name.raw(), machineIds[j]); … … 172 172 Bstr snapshotName; 173 173 snapshot->COMGETTER(Name)(snapshotName.asOutParam()); 174 RTPrintf(" [%l S (UUID: %lS)]", snapshotName.raw(), snapshotIds[k]);174 RTPrintf(" [%ls (UUID: %ls)]", snapshotName.raw(), snapshotIds[k]); 175 175 } 176 176 } … … 227 227 if (i) 228 228 RTPrintf("\n"); 229 RTPrintf("Pack no.%2zu: %l S\n"230 "Version: %l S\n"229 RTPrintf("Pack no.%2zu: %ls\n" 230 "Version: %ls\n" 231 231 "Revision: %u\n" 232 "Description: %l S\n"233 "VRDE Module: %l S\n"232 "Description: %ls\n" 233 "VRDE Module: %ls\n" 234 234 "Usable: %RTbool\n" 235 "Why unusable: %l S\n",235 "Why unusable: %ls\n", 236 236 i, bstrName.raw(), 237 237 bstrVersion.raw(), … … 367 367 Bstr guestId; 368 368 guestOS->COMGETTER(Id)(guestId.asOutParam()); 369 RTPrintf("ID: %l S\n", guestId.raw());369 RTPrintf("ID: %ls\n", guestId.raw()); 370 370 Bstr guestDescription; 371 371 guestOS->COMGETTER(Description)(guestDescription.asOutParam()); 372 RTPrintf("Description: %l S\n\n", guestDescription.raw());372 RTPrintf("Description: %ls\n\n", guestDescription.raw()); 373 373 } 374 374 } … … 392 392 Bstr location; 393 393 dvdDrive->COMGETTER(Location)(location.asOutParam()); 394 RTPrintf("Name: %l S\n\n", location.raw());394 RTPrintf("Name: %ls\n\n", location.raw()); 395 395 } 396 396 } … … 414 414 Bstr location; 415 415 floppyDrive->COMGETTER(Location)(location.asOutParam()); 416 RTPrintf("Name: %l S\n\n", location.raw());416 RTPrintf("Name: %ls\n\n", location.raw()); 417 417 } 418 418 } … … 445 445 Bstr interfaceName; 446 446 networkInterface->COMGETTER(Name)(interfaceName.asOutParam()); 447 RTPrintf("Name: %l S\n", interfaceName.raw());447 RTPrintf("Name: %ls\n", interfaceName.raw()); 448 448 Guid interfaceGuid; 449 449 networkInterface->COMGETTER(Id)(interfaceGuid.asOutParam()); 450 RTPrintf("GUID: %l S\n\n", Bstr(interfaceGuid.toString()).raw());450 RTPrintf("GUID: %ls\n\n", Bstr(interfaceGuid.toString()).raw()); 451 451 #else /* VBOX_WITH_HOSTNETIF_API */ 452 452 Bstr interfaceName; 453 453 networkInterface->COMGETTER(Name)(interfaceName.asOutParam()); 454 RTPrintf("Name: %l S\n", interfaceName.raw());454 RTPrintf("Name: %ls\n", interfaceName.raw()); 455 455 Bstr interfaceGuid; 456 456 networkInterface->COMGETTER(Id)(interfaceGuid.asOutParam()); 457 RTPrintf("GUID: %l S\n", interfaceGuid.raw());457 RTPrintf("GUID: %ls\n", interfaceGuid.raw()); 458 458 BOOL bDhcpEnabled; 459 459 networkInterface->COMGETTER(DhcpEnabled)(&bDhcpEnabled); … … 462 462 Bstr IPAddress; 463 463 networkInterface->COMGETTER(IPAddress)(IPAddress.asOutParam()); 464 RTPrintf("IPAddress: %l S\n", IPAddress.raw());464 RTPrintf("IPAddress: %ls\n", IPAddress.raw()); 465 465 Bstr NetworkMask; 466 466 networkInterface->COMGETTER(NetworkMask)(NetworkMask.asOutParam()); 467 RTPrintf("NetworkMask: %l S\n", NetworkMask.raw());467 RTPrintf("NetworkMask: %ls\n", NetworkMask.raw()); 468 468 Bstr IPV6Address; 469 469 networkInterface->COMGETTER(IPV6Address)(IPV6Address.asOutParam()); 470 RTPrintf("IPV6Address: %l S\n", IPV6Address.raw());470 RTPrintf("IPV6Address: %ls\n", IPV6Address.raw()); 471 471 ULONG IPV6NetworkMaskPrefixLength; 472 472 networkInterface->COMGETTER(IPV6NetworkMaskPrefixLength)(&IPV6NetworkMaskPrefixLength); … … 474 474 Bstr HardwareAddress; 475 475 networkInterface->COMGETTER(HardwareAddress)(HardwareAddress.asOutParam()); 476 RTPrintf("HardwareAddress: %l S\n", HardwareAddress.raw());476 RTPrintf("HardwareAddress: %ls\n", HardwareAddress.raw()); 477 477 HostNetworkInterfaceMediumType_T Type; 478 478 networkInterface->COMGETTER(MediumType)(&Type); … … 483 483 Bstr netName; 484 484 networkInterface->COMGETTER(NetworkName)(netName.asOutParam()); 485 RTPrintf("VBoxNetworkName: %l S\n\n", netName.raw());485 RTPrintf("VBoxNetworkName: %ls\n\n", netName.raw()); 486 486 #endif 487 487 } … … 519 519 RTPrintf("Processor#%u speed: unknown\n", i, processorSpeed); 520 520 CHECK_ERROR(Host, GetProcessorDescription(i, processorDescription.asOutParam())); 521 RTPrintf("Processor#%u description: %l S\n", i, processorDescription.raw());521 RTPrintf("Processor#%u description: %ls\n", i, processorDescription.raw()); 522 522 } 523 523 … … 532 532 Bstr operatingSystem; 533 533 CHECK_ERROR(Host, COMGETTER(OperatingSystem)(operatingSystem.asOutParam())); 534 RTPrintf("Operating system: %l S\n", operatingSystem.raw());534 RTPrintf("Operating system: %ls\n", operatingSystem.raw()); 535 535 536 536 Bstr oSVersion; 537 537 CHECK_ERROR(Host, COMGETTER(OSVersion)(oSVersion.asOutParam())); 538 RTPrintf("Operating system version: %l S\n", oSVersion.raw());538 RTPrintf("Operating system version: %ls\n", oSVersion.raw()); 539 539 break; 540 540 } … … 713 713 CHECK_ERROR_RET(dev, COMGETTER(Manufacturer)(bstr.asOutParam()), 1); 714 714 if (!bstr.isEmpty()) 715 RTPrintf("Manufacturer: %l S\n", bstr.raw());715 RTPrintf("Manufacturer: %ls\n", bstr.raw()); 716 716 CHECK_ERROR_RET(dev, COMGETTER(Product)(bstr.asOutParam()), 1); 717 717 if (!bstr.isEmpty()) 718 RTPrintf("Product: %l S\n", bstr.raw());718 RTPrintf("Product: %ls\n", bstr.raw()); 719 719 CHECK_ERROR_RET(dev, COMGETTER(SerialNumber)(bstr.asOutParam()), 1); 720 720 if (!bstr.isEmpty()) 721 RTPrintf("SerialNumber: %l S\n", bstr.raw());721 RTPrintf("SerialNumber: %ls\n", bstr.raw()); 722 722 CHECK_ERROR_RET(dev, COMGETTER(Address)(bstr.asOutParam()), 1); 723 723 if (!bstr.isEmpty()) 724 RTPrintf("Address: %l S\n", bstr.raw());724 RTPrintf("Address: %ls\n", bstr.raw()); 725 725 726 726 /* current state */ … … 805 805 Bstr bstr; 806 806 CHECK_ERROR_RET(flt, COMGETTER(Name)(bstr.asOutParam()), 1); 807 RTPrintf("Name: %l S\n", bstr.raw());807 RTPrintf("Name: %ls\n", bstr.raw()); 808 808 CHECK_ERROR_RET(flt, COMGETTER(VendorId)(bstr.asOutParam()), 1); 809 RTPrintf("VendorId: %l S\n", bstr.raw());809 RTPrintf("VendorId: %ls\n", bstr.raw()); 810 810 CHECK_ERROR_RET(flt, COMGETTER(ProductId)(bstr.asOutParam()), 1); 811 RTPrintf("ProductId: %l S\n", bstr.raw());811 RTPrintf("ProductId: %ls\n", bstr.raw()); 812 812 CHECK_ERROR_RET(flt, COMGETTER(Revision)(bstr.asOutParam()), 1); 813 RTPrintf("Revision: %l S\n", bstr.raw());813 RTPrintf("Revision: %ls\n", bstr.raw()); 814 814 CHECK_ERROR_RET(flt, COMGETTER(Manufacturer)(bstr.asOutParam()), 1); 815 RTPrintf("Manufacturer: %l S\n", bstr.raw());815 RTPrintf("Manufacturer: %ls\n", bstr.raw()); 816 816 CHECK_ERROR_RET(flt, COMGETTER(Product)(bstr.asOutParam()), 1); 817 RTPrintf("Product: %l S\n", bstr.raw());817 RTPrintf("Product: %ls\n", bstr.raw()); 818 818 CHECK_ERROR_RET(flt, COMGETTER(SerialNumber)(bstr.asOutParam()), 1); 819 RTPrintf("Serial Number: %l S\n\n", bstr.raw());819 RTPrintf("Serial Number: %ls\n\n", bstr.raw()); 820 820 } 821 821 } … … 901 901 RTPrintf("Maximum Devices per Floppy Port: %u\n", ulValue); 902 902 systemProperties->COMGETTER(DefaultMachineFolder)(str.asOutParam()); 903 RTPrintf("Default machine folder: %l S\n", str.raw());903 RTPrintf("Default machine folder: %ls\n", str.raw()); 904 904 systemProperties->COMGETTER(VRDEAuthLibrary)(str.asOutParam()); 905 RTPrintf("VRDE auth library: %l S\n", str.raw());905 RTPrintf("VRDE auth library: %ls\n", str.raw()); 906 906 systemProperties->COMGETTER(WebServiceAuthLibrary)(str.asOutParam()); 907 RTPrintf("Webservice auth. library: %l S\n", str.raw());907 RTPrintf("Webservice auth. library: %ls\n", str.raw()); 908 908 systemProperties->COMGETTER(DefaultVRDEExtPack)(str.asOutParam()); 909 RTPrintf("Remote desktop ExtPack: %l S\n", str.raw());909 RTPrintf("Remote desktop ExtPack: %ls\n", str.raw()); 910 910 systemProperties->COMGETTER(LogHistoryCount)(&ulValue); 911 911 RTPrintf("Log history count: %u\n", ulValue); … … 922 922 Bstr netName; 923 923 svr->COMGETTER(NetworkName)(netName.asOutParam()); 924 RTPrintf("NetworkName: %l S\n", netName.raw());924 RTPrintf("NetworkName: %ls\n", netName.raw()); 925 925 Bstr ip; 926 926 svr->COMGETTER(IPAddress)(ip.asOutParam()); 927 RTPrintf("IP: %l S\n", ip.raw());927 RTPrintf("IP: %ls\n", ip.raw()); 928 928 Bstr netmask; 929 929 svr->COMGETTER(NetworkMask)(netmask.asOutParam()); 930 RTPrintf("NetworkMask: %l S\n", netmask.raw());930 RTPrintf("NetworkMask: %ls\n", netmask.raw()); 931 931 Bstr lowerIp; 932 932 svr->COMGETTER(LowerIP)(lowerIp.asOutParam()); 933 RTPrintf("lowerIPAddress: %l S\n", lowerIp.raw());933 RTPrintf("lowerIPAddress: %ls\n", lowerIp.raw()); 934 934 Bstr upperIp; 935 935 svr->COMGETTER(UpperIP)(upperIp.asOutParam()); 936 RTPrintf("upperIPAddress: %l S\n", upperIp.raw());936 RTPrintf("upperIPAddress: %ls\n", upperIp.raw()); 937 937 BOOL fEnabled; 938 938 svr->COMGETTER(Enabled)(&fEnabled); -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp
r38528 r38735 449 449 Bstr bstrNewName; 450 450 CHECK_ERROR_RET(trgMachine, COMGETTER(Name)(bstrNewName.asOutParam()), RTEXITCODE_FAILURE); 451 RTPrintf("Machine has been successfully cloned as \"%l S\"\n", bstrNewName.raw());451 RTPrintf("Machine has been successfully cloned as \"%ls\"\n", bstrNewName.raw()); 452 452 453 453 return RTEXITCODE_SUCCESS; … … 684 684 bstrValue.asOutParam())); 685 685 686 RTPrintf("Key: %l S, Value: %lS\n", bstrKey.raw(), bstrValue.raw());686 RTPrintf("Key: %ls, Value: %ls\n", bstrKey.raw(), bstrValue.raw()); 687 687 } 688 688 } … … 693 693 value.asOutParam())); 694 694 if (!value.isEmpty()) 695 RTPrintf("Value: %l S\n", value.raw());695 RTPrintf("Value: %ls\n", value.raw()); 696 696 else 697 697 RTPrintf("No value set!\n"); … … 720 720 bstrValue.asOutParam())); 721 721 722 RTPrintf("Key: %l S, Value: %lS\n", bstrKey.raw(), bstrValue.raw());722 RTPrintf("Key: %ls, Value: %ls\n", bstrKey.raw(), bstrValue.raw()); 723 723 } 724 724 } … … 729 729 value.asOutParam())); 730 730 if (!value.isEmpty()) 731 RTPrintf("Value: %l S\n", value.raw());731 RTPrintf("Value: %ls\n", value.raw()); 732 732 else 733 733 RTPrintf("No value set!\n"); … … 1076 1076 CHECK_PROGRESS_ERROR_RET(ptrProgress, ("Failed to install \"%s\"", szPath), RTEXITCODE_FAILURE); 1077 1077 1078 RTPrintf("Successfully installed \"%l S\".\n", bstrName.raw());1078 RTPrintf("Successfully installed \"%ls\".\n", bstrName.raw()); 1079 1079 } 1080 1080 else if (!strcmp(a->argv[0], "uninstall")) -
trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp
r38636 r38735 507 507 pRTEEv->COMGETTER(Id)(bstrId.asOutParam()); 508 508 pRTEEv->COMGETTER(Message)(bstrMessage.asOutParam()); 509 RTPrintf("\n%s: ** %l S **\n%lS\n%s\n", pszType, bstrId.raw(), bstrMessage.raw(),509 RTPrintf("\n%s: ** %ls **\n%ls\n%s\n", pszType, bstrId.raw(), bstrMessage.raw(), 510 510 fPaused ? "The VM was paused. Continue with HostKey + P after you solved the problem.\n" : ""); 511 511 break; … … 665 665 com::ErrorInfo info; 666 666 667 RTStrPrintf(pszBuffer, sizeof(pszBuffer), "%l S", pwszDescr);667 RTStrPrintf(pszBuffer, sizeof(pszBuffer), "%ls", pwszDescr); 668 668 669 669 RTPrintf("\n%s! Error info:\n", pszName); … … 680 680 681 681 if (pwszComponent) 682 RTPrintf("(component %l S).\n", pwszComponent);682 RTPrintf("(component %ls).\n", pwszComponent); 683 683 684 684 RTPrintf("\n"); -
trunk/src/VBox/HostServices/SharedFolders/service.cpp
r38733 r38735 1261 1261 Log(("SharedFolders host service: svcCall: SHFL_FN_ADD_MAPPING\n")); 1262 1262 LogRel(("SharedFolders host service: adding host mapping\n")); 1263 LogRel((" Host path '%l S', map name '%lS', %s\n",1263 LogRel((" Host path '%ls', map name '%ls', %s\n", 1264 1264 ((SHFLSTRING *)paParms[0].u.pointer.addr)->String.ucs2, 1265 1265 ((SHFLSTRING *)paParms[1].u.pointer.addr)->String.ucs2, … … 1320 1320 { 1321 1321 Log(("SharedFolders host service: svcCall: SHFL_FN_REMOVE_MAPPING\n")); 1322 LogRel(("SharedFolders host service: removing host mapping '%l S'\n",1322 LogRel(("SharedFolders host service: removing host mapping '%ls'\n", 1323 1323 ((SHFLSTRING *)paParms[0].u.pointer.addr)->String.ucs2)); 1324 1324 -
trunk/src/VBox/Main/testcase/tstAPI.cpp
r38636 r38735 1186 1186 Bstr interfaceName; 1187 1187 networkInterface->COMGETTER(Name)(interfaceName.asOutParam()); 1188 RTPrintf("Found %d network interfaces, testing with %l S...\n", hostNetworkInterfaces.size(), interfaceName.raw());1188 RTPrintf("Found %d network interfaces, testing with %ls...\n", hostNetworkInterfaces.size(), interfaceName.raw()); 1189 1189 Guid interfaceGuid; 1190 1190 networkInterface->COMGETTER(Id)(interfaceGuid.asOutParam()); … … 1196 1196 networkInterface->COMGETTER(Id)(interfaceGuid2.asOutParam()); 1197 1197 if (interfaceGuid2 != interfaceGuid) 1198 RTPrintf("Failed to retrieve an interface by name %l S.\n", interfaceName.raw());1198 RTPrintf("Failed to retrieve an interface by name %ls.\n", interfaceName.raw()); 1199 1199 // Find the interface by its guid 1200 1200 networkInterface.setNull(); … … 1204 1204 networkInterface->COMGETTER(Name)(interfaceName2.asOutParam()); 1205 1205 if (interfaceName != interfaceName2) 1206 RTPrintf("Failed to retrieve an interface by GUID %l S.\n", Bstr(interfaceGuid.toString()).raw());1206 RTPrintf("Failed to retrieve an interface by GUID %ls.\n", Bstr(interfaceGuid.toString()).raw()); 1207 1207 } 1208 1208 else … … 1414 1414 com::ProgressErrorInfo info(progress); 1415 1415 if (info.isBasicAvailable()) 1416 RTPrintf("Error: failed to import appliance. Error message: %l S\n", info.getText().raw());1416 RTPrintf("Error: failed to import appliance. Error message: %ls\n", info.getText().raw()); 1417 1417 else 1418 1418 RTPrintf("Error: failed to import appliance. No error message available!\n"); -
trunk/src/VBox/Runtime/testcase/tstDir.cpp
r38636 r38735 162 162 DirEntry.Info.AccessTime); 163 163 if (fShortName && DirEntry.cwcShortName) 164 RTPrintf(" %2d %l S\n", DirEntry.cwcShortName, DirEntry.wszShortName);164 RTPrintf(" %2d %ls\n", DirEntry.cwcShortName, DirEntry.wszShortName); 165 165 else 166 166 RTPrintf(" %2d %s\n", DirEntry.cbName, DirEntry.szName);
Note:
See TracChangeset
for help on using the changeset viewer.