[clinfo] 23/55: Use PRIuS to print size_t
Andreas Beckmann
anbe at moszumanska.debian.org
Sat Jan 13 14:40:00 UTC 2018
This is an automated email from the git hooks/post-receive script.
anbe pushed a commit to branch master
in repository clinfo.
commit 3982ef3e37a825bd27ade8b1c965cac8a696ddce
Author: Giuseppe Bilotta <giuseppe.bilotta at gmail.com>
Date: Fri Feb 10 11:09:44 2017 +0100
Use PRIuS to print size_t
---
src/clinfo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/clinfo.c b/src/clinfo.c
index cea976b..ffe1904 100644
--- a/src/clinfo.c
+++ b/src/clinfo.c
@@ -871,7 +871,7 @@ int device_info_mem_sz(cl_device_id dev, cl_device_info param, const char *pname
size_t szval = 0;
GET_VAL;
if (!had_error) {
- szval += sprintf(strbuf, "%zu", val);
+ szval += sprintf(strbuf, "%" PRIuS, val);
if (output_mode == CLINFO_HUMAN && val > 1024)
strbuf_mem(val, szval);
}
--
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