Changeset 11484 in vbox for trunk/src/VBox/Devices/Storage/testcase
- Timestamp:
- Aug 19, 2008 12:41:38 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/testcase/tstVD-2.cpp
r11421 r11484 72 72 if (papsz == aVDInfo[i].papszFileExtensions) 73 73 RTPrintf("<EMPTY>"); 74 RTPrintf("\n");75 74 } 76 75 else 77 RTPrintf("<NONE>\n"); 76 RTPrintf("<NONE>"); 77 RTPrintf(" config="); 78 if (aVDInfo[i].paConfigInfo) 79 { 80 PCVDCONFIGINFO pa = aVDInfo[i].paConfigInfo; 81 while (pa->pszKey != NULL) 82 { 83 if (pa != aVDInfo[i].paConfigInfo) 84 RTPrintf(","); 85 RTPrintf("(key=%s type=", pa->pszKey); 86 switch (pa->enmValueType) 87 { 88 case VDCFGVALUETYPE_INTEGER: 89 RTPrintf("integer default="); 90 if (pa->pDefaultValue) 91 RTPrintf("%RU64", pa->pDefaultValue->Integer.u64); 92 else 93 RTPrintf("<NONE>"); 94 break; 95 case VDCFGVALUETYPE_STRING: 96 RTPrintf("string default="); 97 if (pa->pDefaultValue) 98 RTPrintf("%s", pa->pDefaultValue->String.psz); 99 else 100 RTPrintf("<NONE>"); 101 break; 102 case VDCFGVALUETYPE_BYTES: 103 RTPrintf("bytes default="); 104 if (pa->pDefaultValue) 105 RTPrintf("length=%RTuint %.*Rhxs", 106 pa->pDefaultValue->Bytes.cb, 107 pa->pDefaultValue->Bytes.cb, 108 pa->pDefaultValue->Bytes.pv); 109 else 110 RTPrintf("<NONE>"); 111 break; 112 default: 113 RTPrintf("INVALID!"); 114 } 115 RTPrintf(" flags="); 116 if (!pa->uKeyFlags) 117 RTPrintf("none"); 118 unsigned cFlags = 0; 119 if (pa->uKeyFlags & VD_CFGKEY_MANDATORY) 120 { 121 if (cFlags) 122 RTPrintf(","); 123 RTPrintf("mandatory"); 124 cFlags++; 125 } 126 if (pa->uKeyFlags & VD_CFGKEY_EXPERT) 127 { 128 if (cFlags) 129 RTPrintf(","); 130 RTPrintf("expert"); 131 cFlags++; 132 } 133 RTPrintf(")"); 134 pa++; 135 } 136 if (pa == aVDInfo[i].paConfigInfo) 137 RTPrintf("<EMPTY>"); 138 } 139 else 140 RTPrintf("<NONE>"); 141 RTPrintf("\n"); 78 142 } 79 143
Note:
See TracChangeset
for help on using the changeset viewer.