- Timestamp:
- Feb 17, 2009 12:47:14 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageImport.cpp
r16830 r16834 334 334 } 335 335 else 336 RTPrintf("%2d: SCSI controller, type %ls" 337 "\n (change with \"-vsys %d -type%d={BusLogic|LsiLogic}\";" // @todo 338 "\n disable with \"-vsys %d -ignore %d\")\n", 339 a, 340 aConfigValues[a], 341 i, a, i, a); 336 { 337 Utf8StrFmt strTypeArg("-type%RI16", a); 338 if (findArgValue(strOverride, pmapArgs, strTypeArg)) 339 { 340 bstrFinalValue = strOverride; 341 RTPrintf("%2d: SCSI controller, type set with -type%d: %ls\n", 342 a, 343 a, 344 bstrFinalValue.raw()); 345 } 346 else 347 RTPrintf("%2d: SCSI controller, type %ls" 348 "\n (change with \"-vsys %d -type%d {BusLogic|LsiLogic}\";" 349 "\n disable with \"-vsys %d -ignore %d\")\n", 350 a, 351 aConfigValues[a], 352 i, a, i, a); 353 } 342 354 break; 343 355 … … 351 363 } 352 364 else 353 RTPrintf("%2d: Hard disk image: source image=%ls, target path=%ls, %ls" 354 "\n (change controller with \"-vsys %d -controller%d=<id>\";" // @todo 355 "\n disable with \"-vsys %d -ignore %d\")\n", 356 a, 357 aOrigValues[a], 358 aConfigValues[a], 359 aExtraConfigValues[a], 360 i, a, i, a); 365 { 366 Utf8StrFmt strTypeArg("-controller%RI16", a); 367 if (findArgValue(strOverride, pmapArgs, strTypeArg)) 368 { 369 // strOverride now has the controller index as a number, but we 370 // need a "controller=X" format string 371 strOverride = Utf8StrFmt("controller=%s", strOverride.c_str()); 372 Bstr bstrExtraConfigValue = strOverride; 373 bstrExtraConfigValue.detachTo(&aExtraConfigValues[a]); 374 RTPrintf("%2d: Hard disk image: source image=%ls, target path=%ls, %ls\n", 375 a, 376 aOrigValues[a], 377 aConfigValues[a], 378 aExtraConfigValues[a]); 379 } 380 else 381 RTPrintf("%2d: Hard disk image: source image=%ls, target path=%ls, %ls" 382 "\n (change controller with \"-vsys %d -controller%d <id>\";" 383 "\n disable with \"-vsys %d -ignore %d\")\n", 384 a, 385 aOrigValues[a], 386 aConfigValues[a], 387 aExtraConfigValues[a], 388 i, a, i, a); 389 } 361 390 break; 362 391 … … 388 417 389 418 case VirtualSystemDescriptionType_NetworkAdapter: 390 RTPrintf("%2d: Network adapter: orig %ls, config %ls, extra %ls\n", // @todo 419 RTPrintf("%2d: Network adapter: orig %ls, config %ls, extra %ls\n", // @todo implement once we have a plan for the back-end 391 420 a, 392 421 aOrigValues[a],
Note:
See TracChangeset
for help on using the changeset viewer.