summaryrefslogtreecommitdiffstats
path: root/src/memxfer5b.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/memxfer5b.c')
-rw-r--r--src/memxfer5b.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/memxfer5b.c b/src/memxfer5b.c
index 179b2d4..dd0790c 100644
--- a/src/memxfer5b.c
+++ b/src/memxfer5b.c
@@ -20,7 +20,7 @@
*/
#ifdef HAVE_CONFIG_H
-#include <config.h>
+#include <ptx-sisyphus_config.h>
#endif
#define __int64 long long
@@ -71,7 +71,7 @@ int main(int ac, char *av[])
size_t j;
unsigned cnt;
int method = 0;
- char *p1, *p2;
+ char *p1 = NULL, *p2 = NULL;
char *p,*q;
short *sp, *sq;
int *ip, *iq;
@@ -180,7 +180,7 @@ int main(int ac, char *av[])
tstart();
for(ui = 0; ui < cnt; ui++) {
if(!sflag) {
- (void)printf("%s %d %d %-18.18s\t",
+ (void)printf("%s %ld %d %-18.18s\t",
progname, size, cnt, methods[method]);
tstart();
}
@@ -254,11 +254,11 @@ int main(int ac, char *av[])
tottim = tval();
}
if(csvflag) {
- printf("%s,%u,%u,%8.3f,%8.3f\n",
+ printf("%s,%lu,%lu,%8.3f,%8.3f\n",
methods[method],size,size*cnt,tottim,(double)size/(tottim/cnt)/1000000.);
}
else {
- (void)printf(_("\tAVG: %d %-18.18s\t"), size, methods[method]);
+ (void)printf(_("\tAVG: %ld %-18.18s\t"), size, methods[method]);
(void)printf(" %8.3f MB/s\n", (double)size/(tottim/cnt)/1000000.);
}
tottim = 0.0;
@@ -309,7 +309,7 @@ void *Malloc(size_t sz)
p = (char *)malloc(sz);
if(p == NULL) {
- (void)printf(_("malloc(%d) failed\n"),sz);
+ (void)printf(_("malloc(%ld) failed\n"),sz);
exit(1);
}
return (void *)p;