VirtualBox

Changeset 107938 in vbox


Ignore:
Timestamp:
Jan 27, 2025 11:46:51 AM (4 weeks ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
167183
Message:

Installer/win/VBoxStub.cpp: Log the host architecture in verbose mode. bugref:10849

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/win/Stub/VBoxStub.cpp

    r106984 r107938  
    472472}
    473473
     474/**
     475 * Returns a string for the given package architecture.
     476 *
     477 * @returns String for the given package architecture, or "<Unknown>" if invalid/unknown.
     478 * @param   enmPkgArch          Package architecture to return as a string.
     479 */
     480static const char *GetPackageArchStr(VBOXSTUBPKGARCH enmPkgArch)
     481{
     482    switch (enmPkgArch)
     483    {
     484        case VBOXSTUBPKGARCH_X86:   return "x86";
     485        case VBOXSTUBPKGARCH_AMD64: return "x86_64";
     486        case VBOXSTUBPKGARCH_ARM64: return "arm64";
     487        default:                    break;
     488    }
     489
     490    return "<Unknown>";
     491}
    474492
    475493/**
     
    14501468    }
    14511469
     1470    VBOXSTUBPKGARCH const enmPkgArch = GetNativePackageArch();
     1471
    14521472    if (g_iVerbosity)
    1453     {
     1473    {       
     1474        RTPrintf("Host architecture        : %s\n",      GetPackageArchStr(enmPkgArch));
    14541475        RTPrintf("Extraction path          : %s\n",      szExtractPath);
    14551476        RTPrintf("Silent installation      : %RTbool\n", g_fSilent);
     
    14661487    if (   !fExtractOnly
    14671488        && !g_fSilent
    1468         && GetNativePackageArch() == VBOXSTUBPKGARCH_X86)
     1489        && enmPkgArch == VBOXSTUBPKGARCH_X86)
    14691490        rcExit = ShowError("32-bit Windows hosts are not supported by this VirtualBox release.");
    14701491    else
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette