Changeset 57602 in vbox
- Timestamp:
- Sep 3, 2015 8:21:57 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/VMMDev/VMMDev.cpp
r57358 r57602 136 136 /* -=-=-=-=- Misc Helpers -=-=-=-=- */ 137 137 138 /** 139 * Log information about the Guest Additions. 140 * 141 * @param pGuestInfo The information we've got from the Guest Additions driver. 142 */ 143 static void vmmdevLogGuestOsInfo(VBoxGuestInfo *pGuestInfo) 144 { 145 const char *pcszOs; 146 switch (pGuestInfo->osType & ~VBOXOSTYPE_x64) 147 { 148 case VBOXOSTYPE_DOS: pcszOs = "DOS"; break; 149 case VBOXOSTYPE_Win31: pcszOs = "Windows 3.1"; break; 150 case VBOXOSTYPE_Win9x: pcszOs = "Windows 9x"; break; 151 case VBOXOSTYPE_Win95: pcszOs = "Windows 95"; break; 152 case VBOXOSTYPE_Win98: pcszOs = "Windows 98"; break; 153 case VBOXOSTYPE_WinMe: pcszOs = "Windows Me"; break; 154 case VBOXOSTYPE_WinNT: pcszOs = "Windows NT"; break; 155 case VBOXOSTYPE_WinNT4: pcszOs = "Windows NT4"; break; 156 case VBOXOSTYPE_Win2k: pcszOs = "Windows 2k"; break; 157 case VBOXOSTYPE_WinXP: pcszOs = "Windows XP"; break; 158 case VBOXOSTYPE_Win2k3: pcszOs = "Windows 2k3"; break; 159 case VBOXOSTYPE_WinVista: pcszOs = "Windows Vista"; break; 160 case VBOXOSTYPE_Win2k8: pcszOs = "Windows 2k8"; break; 161 case VBOXOSTYPE_Win7: pcszOs = "Windows 7"; break; 162 case VBOXOSTYPE_Win8: pcszOs = "Windows 8"; break; 163 case VBOXOSTYPE_Win2k12_x64 & ~VBOXOSTYPE_x64: pcszOs = "Windows 2k12"; break; 164 case VBOXOSTYPE_Win81: pcszOs = "Windows 8.1"; break; 165 case VBOXOSTYPE_Win10: pcszOs = "Windows 10"; break; 166 case VBOXOSTYPE_OS2: pcszOs = "OS/2"; break; 167 case VBOXOSTYPE_OS2Warp3: pcszOs = "OS/2 Warp 3"; break; 168 case VBOXOSTYPE_OS2Warp4: pcszOs = "OS/2 Warp 4"; break; 169 case VBOXOSTYPE_OS2Warp45: pcszOs = "OS/2 Warp 4.5"; break; 170 case VBOXOSTYPE_ECS: pcszOs = "OS/2 ECS"; break; 171 case VBOXOSTYPE_OS21x: pcszOs = "OS/2 2.1x"; break; 172 case VBOXOSTYPE_Linux: pcszOs = "Linux"; break; 173 case VBOXOSTYPE_Linux22: pcszOs = "Linux 2.2"; break; 174 case VBOXOSTYPE_Linux24: pcszOs = "Linux 2.4"; break; 175 case VBOXOSTYPE_Linux26: pcszOs = "Linux >= 2.6"; break; 176 case VBOXOSTYPE_ArchLinux: pcszOs = "ArchLinux"; break; 177 case VBOXOSTYPE_Debian: pcszOs = "Debian"; break; 178 case VBOXOSTYPE_OpenSUSE: pcszOs = "openSUSE"; break; 179 case VBOXOSTYPE_FedoraCore: pcszOs = "Fedora"; break; 180 case VBOXOSTYPE_Gentoo: pcszOs = "Gentoo"; break; 181 case VBOXOSTYPE_Mandriva: pcszOs = "Mandriva"; break; 182 case VBOXOSTYPE_RedHat: pcszOs = "RedHat"; break; 183 case VBOXOSTYPE_Turbolinux: pcszOs = "TurboLinux"; break; 184 case VBOXOSTYPE_Ubuntu: pcszOs = "Ubuntu"; break; 185 case VBOXOSTYPE_Xandros: pcszOs = "Xandros"; break; 186 case VBOXOSTYPE_Oracle: pcszOs = "Oracle Linux"; break; 187 case VBOXOSTYPE_FreeBSD: pcszOs = "FreeBSD"; break; 188 case VBOXOSTYPE_OpenBSD: pcszOs = "OpenBSD"; break; 189 case VBOXOSTYPE_NetBSD: pcszOs = "NetBSD"; break; 190 case VBOXOSTYPE_Netware: pcszOs = "Netware"; break; 191 case VBOXOSTYPE_Solaris: pcszOs = "Solaris"; break; 192 case VBOXOSTYPE_OpenSolaris: pcszOs = "OpenSolaris"; break; 193 case VBOXOSTYPE_Solaris11_x64 & ~VBOXOSTYPE_x64: pcszOs = "Solaris 11"; break; 194 case VBOXOSTYPE_MacOS: pcszOs = "Mac OS X"; break; 195 case VBOXOSTYPE_MacOS106: pcszOs = "Mac OS X 10.6"; break; 196 case VBOXOSTYPE_MacOS107_x64 & ~VBOXOSTYPE_x64: pcszOs = "Mac OS X 10.7"; break; 197 case VBOXOSTYPE_MacOS108_x64 & ~VBOXOSTYPE_x64: pcszOs = "Mac OS X 10.8"; break; 198 case VBOXOSTYPE_MacOS109_x64 & ~VBOXOSTYPE_x64: pcszOs = "Mac OS X 10.9"; break; 199 case VBOXOSTYPE_MacOS1010_x64 & ~VBOXOSTYPE_x64: pcszOs = "Mac OS X 10.10"; break; 200 case VBOXOSTYPE_MacOS1011_x64 & ~VBOXOSTYPE_x64: pcszOs = "Mac OS X 10.11"; break; 201 case VBOXOSTYPE_Haiku: pcszOs = "Haiku"; break; 202 default: pcszOs = "unknown"; break; 203 } 204 LogRel(("VMMDev: Guest Additions information report: Interface = 0x%08X osType = 0x%08X (%s, %u-bit)\n", 205 pGuestInfo->interfaceVersion, pGuestInfo->osType, pcszOs, 206 pGuestInfo->osType & VBOXOSTYPE_x64 ? 64 : 32)); 207 } 138 208 139 209 /** … … 340 410 pThis->fu32AdditionsOk = VBOX_GUEST_INTERFACE_VERSION_OK(pThis->guestInfo.interfaceVersion); 341 411 342 LogRel(("VMMDev: Guest Additions information report: Interface = 0x%08X osType = 0x%08X (%u-bit)\n", 343 pThis->guestInfo.interfaceVersion, pThis->guestInfo.osType, 344 (pThis->guestInfo.osType & VBOXOSTYPE_x64) ? 64 : 32)); 412 vmmdevLogGuestOsInfo(&pThis->guestInfo); 345 413 346 414 if (pThis->pDrv && pThis->pDrv->pfnUpdateGuestInfo) … … 3553 3621 if (pThis->fu32AdditionsOk) 3554 3622 { 3555 LogRel(("VMMDev: Guest Additions information report: additionsVersion = 0x%08X, osType = 0x%08X (%u-bit)\n", 3556 pThis->guestInfo.interfaceVersion, pThis->guestInfo.osType, 3557 (pThis->guestInfo.osType & VBOXOSTYPE_x64) ? 64 : 32)); 3623 vmmdevLogGuestOsInfo(&pThis->guestInfo); 3558 3624 if (pThis->pDrv) 3559 3625 {
Note:
See TracChangeset
for help on using the changeset viewer.