From: Oliver Kurth Date: Fri, 15 Sep 2017 18:23:38 +0000 (-0700) Subject: Log DRM version in the debug message. X-Git-Tag: stable-10.2.0~226 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5965ba1d8ad2803f83771b25dc13b499a8a6c9e8;p=thirdparty%2Fopen-vm-tools.git Log DRM version in the debug message. The additional version in the message proved very useful while debugging resolutionKMS functionality. --- diff --git a/open-vm-tools/services/plugins/resolutionSet/resolutionCommon.c b/open-vm-tools/services/plugins/resolutionSet/resolutionCommon.c index ac887f688..38dccdac0 100644 --- a/open-vm-tools/services/plugins/resolutionSet/resolutionCommon.c +++ b/open-vm-tools/services/plugins/resolutionSet/resolutionCommon.c @@ -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; }