[clinfo] 33/148: Show hex for unknown flags

Andreas Beckmann anbe at moszumanska.debian.org
Mon Nov 17 14:09:42 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 e7c0e2a588e9cdf6f51c3c184e29bdcd8936993c
Author: Giuseppe Bilotta <giuseppe.bilotta at gmail.com>
Date:   Tue Jun 11 19:17:47 2013 +0200

    Show hex for unknown flags
---
 src/clinfo.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/clinfo.c b/src/clinfo.c
index 7ac1d08..14128b1 100644
--- a/src/clinfo.c
+++ b/src/clinfo.c
@@ -349,7 +349,7 @@ printDeviceInfo(cl_uint d)
 			case CL_DEVICE_PARTITION_BY_AFFINITY_DOMAIN:
 				printf("by affinity domain"); break;
 			default:
-				printf("by <unknown>"); break;
+				printf("by <unknown> (0x%X)", partprop[cursor]); break;
 			}
 			if (cursor < numpartprop - 1)
 				printf(", ");
@@ -393,7 +393,7 @@ printDeviceInfo(cl_uint d)
 			case CL_DEVICE_PARTITION_BY_AFFINITY_DOMAIN_EXT:
 				printf("by affinity domain"); break;
 			default:
-				printf("by <unknown>"); break;
+				printf("by <unknown> (0x%X)", partprop_ext[cursor]); break;
 			}
 			if (cursor < numpartprop_ext - 1)
 				printf(", ");

-- 
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