[clinfo] 38/148: Fix formatting string warnings
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 07270582591374d061c23ca05e51e1b3a732a09a
Author: Giuseppe Bilotta <giuseppe.bilotta at gmail.com>
Date: Tue Jul 9 20:32:49 2013 +0200
Fix formatting string warnings
---
src/clinfo.c | 6 +++---
src/memory.h | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/clinfo.c b/src/clinfo.c
index 9081f79..c8e1c8b 100644
--- a/src/clinfo.c
+++ b/src/clinfo.c
@@ -347,7 +347,7 @@ printDeviceInfo(cl_uint d)
case CL_DEVICE_PARTITION_BY_AFFINITY_DOMAIN:
printf("by affinity domain"); break;
default:
- printf("by <unknown> (0x%X)", partprop[cursor]); break;
+ printf("by <unknown> (0x%lX)", partprop[cursor]); break;
}
if (cursor < numpartprop - 1)
printf(", ");
@@ -391,7 +391,7 @@ printDeviceInfo(cl_uint d)
case CL_DEVICE_PARTITION_BY_AFFINITY_DOMAIN_EXT:
printf("by affinity domain"); break;
default:
- printf("by <unknown> (0x%X)", partprop_ext[cursor]); break;
+ printf("by <unknown> (0x%lX)", partprop_ext[cursor]); break;
}
if (cursor < numpartprop_ext - 1)
printf(", ");
@@ -415,7 +415,7 @@ printDeviceInfo(cl_uint d)
case CL_AFFINITY_DOMAIN_NEXT_FISSIONABLE_EXT:
printf("next fissionable"); break;
default:
- printf("<unknown> (0x%X)", partdom_ext[cursor]);
+ printf("<unknown> (0x%lX)", partdom_ext[cursor]);
break;
}
if (cursor < numpartdom_ext - 1)
diff --git a/src/memory.h b/src/memory.h
index 80960c8..042ebba 100644
--- a/src/memory.h
+++ b/src/memory.h
@@ -4,7 +4,7 @@
#define CHECK_MEM(var, what) do { \
if (!var) { \
- fprintf(stderr, "%s:%s: %s : Out of memory\n", \
+ fprintf(stderr, "%s:%d: %s : Out of memory\n", \
__func__, __LINE__, what); \
exit(1); \
} \
--
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