VirtualBox

Changeset 79451 in vbox


Ignore:
Timestamp:
Jul 1, 2019 4:27:17 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
131707
Message:

linux/VBoxSF: Log guest module version and the linux kernel version to the host. bugref:9172

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/sharedfolders/vfsmod.c

    r78890 r79451  
    5353#include <linux/seq_file.h>
    5454#include <linux/vfs.h>
     55#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 5, 62)
     56# include <linux/vermagic.h>
     57#endif
    5558#include <VBox/err.h>
    5659#include <iprt/path.h>
     
    983986                if (rc == 0) {
    984987                    printk(KERN_INFO "vboxsf: Successfully loaded version " VBOX_VERSION_STRING "\n");
     988#ifdef VERMAGIC_STRING
     989                    LogRel(("vboxsf: Successfully loaded version " VBOX_VERSION_STRING " on %s (LINUX_VERSION_CODE=%#x)\n",
     990                            VERMAGIC_STRING, LINUX_VERSION_CODE));
     991#elif defined(UTS_RELEASE)
     992                    LogRel(("vboxsf: Successfully loaded version " VBOX_VERSION_STRING " on %s (LINUX_VERSION_CODE=%#x)\n",
     993                            UTS_RELEASE, LINUX_VERSION_CODE));
     994#else
     995                    LogRel(("vboxsf: Successfully loaded version " VBOX_VERSION_STRING " (LINUX_VERSION_CODE=%#x)\n", LINUX_VERSION_CODE));
     996#endif
    985997                    return 0;
    986998                }
Note: See TracChangeset for help on using the changeset viewer.

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