[clinfo] 18/148: Rename GET_STRINGX to GET_STRING

Andreas Beckmann anbe at moszumanska.debian.org
Mon Nov 17 14:09:39 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 8d11e87bdaa6493cce925fbbdbea90af3ba261bc
Author: Giuseppe Bilotta <giuseppe.bilotta at gmail.com>
Date:   Fri Jun 7 12:08:55 2013 +0200

    Rename GET_STRINGX to GET_STRING
---
 src/clinfo.c | 6 +++---
 src/strbuf.h | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/clinfo.c b/src/clinfo.c
index 6187d09..fde71d1 100644
--- a/src/clinfo.c
+++ b/src/clinfo.c
@@ -49,7 +49,7 @@ size_t wgm[NUM_KERNELS];
 #define ARRAY_SIZE(ar) (sizeof(ar)/sizeof(*ar))
 
 #define SHOW_STRING(cmd, id, param, str) do { \
-	GET_STRINGX(cmd, param, id); \
+	GET_STRING(cmd, param, id); \
 	printf("  %-46s: %s\n", str, strbuf); \
 } while (0)
 
@@ -124,7 +124,7 @@ getWGsizes(cl_platform_id pid, cl_device_id dev)
 	error = clBuildProgram(prg, 1, &dev, NULL, NULL, NULL);
 #if 0
 	if (error != CL_SUCCESS) {
-		GET_STRINGX(clGetProgramBuildInfo, CL_PROGRAM_BUILD_LOG, prg, dev);
+		GET_STRING(clGetProgramBuildInfo, CL_PROGRAM_BUILD_LOG, prg, dev);
 		fputs(strbuf, stderr);
 		exit(1);
 	}
@@ -250,7 +250,7 @@ printDeviceInfo(cl_uint d)
 	SHOW_STRING(clGetDeviceInfo, dev, CL_DRIVER_VERSION, "Driver Version");
 
 	// we get the extensions information here, but only print it at the end
-	GET_STRINGX(clGetDeviceInfo, CL_DEVICE_EXTENSIONS, dev);
+	GET_STRING(clGetDeviceInfo, CL_DEVICE_EXTENSIONS, dev);
 	size_t len = strlen(strbuf);
 	extensions = malloc(len+1);
 	memcpy(extensions, strbuf, len);
diff --git a/src/strbuf.h b/src/strbuf.h
index a76aea3..7d61bbf 100644
--- a/src/strbuf.h
+++ b/src/strbuf.h
@@ -4,7 +4,7 @@
 char *strbuf;
 size_t bufsz, nusz;
 
-#define GET_STRINGX(cmd, param, ...) do { \
+#define GET_STRING(cmd, param, ...) do { \
 	error = cmd(__VA_ARGS__, param, 0, NULL, &nusz); \
 	CHECK_ERROR("get " #param " size"); \
 	if (nusz > bufsz) { \

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