diff mbox

[libdrm,3/4] libdrm: Remove extraneous parameter

Message ID 1396990178-32470-4-git-send-email-thierry.reding@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Thierry Reding April 8, 2014, 8:49 p.m. UTC
From: Thierry Reding <treding@nvidia.com>

The debug message's format string doesn't contain any conversion
specifiers, therefore making the fd argument unused.

Signed-off-by: Thierry Reding <treding@nvidia.com>
---
 xf86drm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/xf86drm.c b/xf86drm.c
index fa5701abae51..e94f2cd00c11 100644
--- a/xf86drm.c
+++ b/xf86drm.c
@@ -503,7 +503,7 @@  static int drmOpenByBusid(const char *busid)
 		sv.drm_di_minor = 1;
 		sv.drm_dd_major = -1;       /* Don't care */
 		sv.drm_dd_minor = -1;       /* Don't care */
-		drmMsg("drmOpenByBusid: Interface 1.4 failed, trying 1.1\n",fd);
+		drmMsg("drmOpenByBusid: Interface 1.4 failed, trying 1.1\n");
 		drmSetInterfaceVersion(fd, &sv);
 	    }
 	    buf = drmGetBusid(fd);