Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/pci Convert to long for format expedie...
details: https://anonhg.NetBSD.org/src/rev/77c35a3f05d4
branches: trunk
changeset: 364860:77c35a3f05d4
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Aug 27 15:12:35 2018 +0000
description:
Convert to long for format expedience.
diffstat:
sys/external/bsd/drm2/pci/drm_pci.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 7813d2e2c096 -r 77c35a3f05d4 sys/external/bsd/drm2/pci/drm_pci.c
--- a/sys/external/bsd/drm2/pci/drm_pci.c Mon Aug 27 15:12:21 2018 +0000
+++ b/sys/external/bsd/drm2/pci/drm_pci.c Mon Aug 27 15:12:35 2018 +0000
@@ -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 @@
/* 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;
Home |
Main Index |
Thread Index |
Old Index