[clinfo] 68/148: Translate nvidia's 'devfunc' to device and function.

Andreas Beckmann anbe at moszumanska.debian.org
Mon Nov 17 14:09:47 UTC 2014


This is an automated email from the git hooks/post-receive script.

anbe pushed a commit to branch clinfo
in repository clinfo.

commit e788ef3ed28feb2e2f55a41138b18fa5d918ba77
Author: magnum <john.magnum at hushmail.com>
Date:   Sun Sep 21 01:51:35 2014 +0200

    Translate nvidia's 'devfunc' to device and function.
---
 src/clinfo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/clinfo.c b/src/clinfo.c
index 0ae9545..e6e123f 100644
--- a/src/clinfo.c
+++ b/src/clinfo.c
@@ -383,7 +383,7 @@ printDeviceInfo(cl_uint d)
 		if (!had_error)
 			GET_PARAM(PCI_SLOT_ID_NV, slot);
 		if (!had_error)
-			snprintf(strbuf, bufsz, "%02x:%02x", bus, slot);
+			snprintf(strbuf, bufsz, "%02x:%02x.%x", bus, slot >> 3, slot & 7);
 		STR_PRINT("Device Topology (NV)", strbuf);
 	}
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opencl/clinfo.git



More information about the Pkg-opencl-commits mailing list