Changeset 73768 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- Aug 19, 2018 7:07:19 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 124451
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
r73740 r73768 608 608 " file <file>|\n" 609 609 " <devicename>]\n" 610 " [--uarttype<1-N> 16450|16550A|16750\n" 610 611 #if defined(RT_OS_LINUX) || defined(RT_OS_WINDOWS) 611 612 " [--lpt<1-N> off|<I/O base> <IRQ>]\n" -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp
r72976 r73768 1493 1493 Bstr path; 1494 1494 BOOL fServer; 1495 UartType_T UartType; 1495 1496 uart->COMGETTER(IRQ)(&ulIRQ); 1496 1497 uart->COMGETTER(IOBase)(&ulIOBase); … … 1498 1499 uart->COMGETTER(Server)(&fServer); 1499 1500 uart->COMGETTER(HostMode)(&HostMode); 1501 uart->COMGETTER(UartType)(&UartType); 1500 1502 1501 1503 if (details == VMINFO_MACHINEREADABLE) … … 1510 1512 RTPrintf("uartmode%d=\"disconnected\"\n", currentUART + 1); 1511 1513 else 1512 RTPrintf(", disconnected \n");1514 RTPrintf(", disconnected"); 1513 1515 break; 1514 1516 case PortMode_RawFile: … … 1525 1527 fServer ? "tcpserver" : "tcpclient", path.raw()); 1526 1528 else 1527 RTPrintf(", attached to tcp (%s) '%ls' \n",1529 RTPrintf(", attached to tcp (%s) '%ls'", 1528 1530 fServer ? "server" : "client", path.raw()); 1529 1531 break; … … 1533 1535 fServer ? "server" : "client", path.raw()); 1534 1536 else 1535 RTPrintf(", attached to pipe (%s) '%ls' \n",1537 RTPrintf(", attached to pipe (%s) '%ls'", 1536 1538 fServer ? "server" : "client", path.raw()); 1537 1539 break; … … 1541 1543 path.raw()); 1542 1544 else 1543 RTPrintf(", attached to device '%ls'\n", path.raw()); 1545 RTPrintf(", attached to device '%ls'", path.raw()); 1546 break; 1547 } 1548 switch (UartType) 1549 { 1550 default: 1551 case UartType_U16450: 1552 if (details == VMINFO_MACHINEREADABLE) 1553 RTPrintf("uarttype%d=\"16450\"\n", currentUART + 1); 1554 else 1555 RTPrintf(", 16450\n"); 1556 break; 1557 case UartType_U16550A: 1558 if (details == VMINFO_MACHINEREADABLE) 1559 RTPrintf("uarttype%d=\"16550A\"\n", currentUART + 1); 1560 else 1561 RTPrintf(", 16550A\n"); 1562 break; 1563 case UartType_U16750: 1564 if (details == VMINFO_MACHINEREADABLE) 1565 RTPrintf("uarttype%d=\"16750\"\n", currentUART + 1); 1566 else 1567 RTPrintf(", 16750\n"); 1544 1568 break; 1545 1569 } -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
r72919 r73768 147 147 MODIFYVM_HIDKBD, 148 148 MODIFYVM_UARTMODE, 149 MODIFYVM_UARTTYPE, 149 150 MODIFYVM_UART, 150 151 #if defined(RT_OS_LINUX) || defined(RT_OS_WINDOWS) … … 334 335 { "--keyboard", MODIFYVM_HIDKBD, RTGETOPT_REQ_STRING }, 335 336 { "--uartmode", MODIFYVM_UARTMODE, RTGETOPT_REQ_STRING | RTGETOPT_FLAG_INDEX }, 337 { "--uarttype", MODIFYVM_UARTTYPE, RTGETOPT_REQ_STRING | RTGETOPT_FLAG_INDEX }, 336 338 { "--uart", MODIFYVM_UART, RTGETOPT_REQ_STRING | RTGETOPT_FLAG_INDEX }, 337 339 #if defined(RT_OS_LINUX) || defined(RT_OS_WINDOWS) … … 2157 2159 } 2158 2160 2161 case MODIFYVM_UARTTYPE: 2162 { 2163 ComPtr<ISerialPort> uart; 2164 2165 CHECK_ERROR_BREAK(sessionMachine, GetSerialPort(GetOptState.uIndex - 1, uart.asOutParam())); 2166 ASSERT(uart); 2167 2168 if (!RTStrICmp(ValueUnion.psz, "16450")) 2169 { 2170 CHECK_ERROR(uart, COMSETTER(UartType)(UartType_U16450)); 2171 } 2172 else if (!RTStrICmp(ValueUnion.psz, "16550A")) 2173 { 2174 CHECK_ERROR(uart, COMSETTER(UartType)(UartType_U16550A)); 2175 } 2176 else if (!RTStrICmp(ValueUnion.psz, "16750")) 2177 { 2178 CHECK_ERROR(uart, COMSETTER(UartType)(UartType_U16750)); 2179 } 2180 else 2181 return errorSyntax(USAGE_MODIFYVM, 2182 "Invalid argument to '%s'", 2183 GetOptState.pDef->pszLong); 2184 break; 2185 } 2186 2159 2187 case MODIFYVM_UART: 2160 2188 {
Note:
See TracChangeset
for help on using the changeset viewer.