]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Log DRM version in the debug message.
authorOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:23:38 +0000 (11:23 -0700)
committerOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:23:38 +0000 (11:23 -0700)
The additional version in the message proved very useful
while debugging resolutionKMS functionality.

open-vm-tools/services/plugins/resolutionSet/resolutionCommon.c

index ac887f6887a4733d3c807ce7ca183a9871f235b0..38dccdac0bacece069094c4f94e4dc2fda4d0366 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 2016 VMware, Inc. All rights reserved.
+ * Copyright (C) 2016-2017 VMware, Inc. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published
@@ -190,8 +190,9 @@ resolutionDRMCheckVersion(int fd)  // IN: An open DRM file descriptor.
     }
 
     if (ver->version_major != RESOLUTION_DRM_MAJOR ||
-       ver->version_minor < RESOLUTION_DRM_MINOR) {
-       g_debug("%s: Insufficient DRM version for resolutionKMS.\n", __func__);
+        ver->version_minor < RESOLUTION_DRM_MINOR) {
+       g_debug("%s: Insufficient DRM version %d.%d for resolutionKMS.\n",
+               __func__, ver->version_major, ver->version_minor);
        drmFreeVersion(ver);
        return -1;
     }