Module Name:    src
Committed By:   riastradh
Date:           Mon Aug 27 15:12:35 UTC 2018

Modified Files:
        src/sys/external/bsd/drm2/pci: drm_pci.c

Log Message:
Convert to long for format expedience.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sys/external/bsd/drm2/pci/drm_pci.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/external/bsd/drm2/pci/drm_pci.c
diff -u src/sys/external/bsd/drm2/pci/drm_pci.c:1.25 src/sys/external/bsd/drm2/pci/drm_pci.c:1.26
--- src/sys/external/bsd/drm2/pci/drm_pci.c:1.25	Mon Aug 27 14:11:21 2018
+++ src/sys/external/bsd/drm2/pci/drm_pci.c	Mon Aug 27 15:12:35 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: drm_pci.c,v 1.25 2018/08/27 14:11:21 riastradh Exp $	*/
+/*	$NetBSD: drm_pci.c,v 1.26 2018/08/27 15:12:35 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_pci.c,v 1.25 2018/08/27 14:11:21 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_pci.c,v 1.26 2018/08/27 15:12:35 riastradh Exp $");
 
 #include <sys/types.h>
 #include <sys/errno.h>
@@ -299,7 +299,8 @@ drm_pci_set_unique(struct drm_device *de
 
 	/* Make sure it matches what we expect.  */
 	snprintf(kbuf, sizeof kbuf, "PCI:%d:%ld:%ld", dev->pdev->bus->number,
-	    PCI_SLOT(dev->pdev->devfn), PCI_FUNC(dev->pdev->devfn));
+	    (long)PCI_SLOT(dev->pdev->devfn),
+	    (long)PCI_FUNC(dev->pdev->devfn));
 	if (strncmp(kbuf, ubuf, sizeof(kbuf)) != 0)
 		return -EINVAL;
 

Reply via email to