Commit 08a0110f authored by Philip Carns's avatar Philip Carns

clean up warnings on 64 bit systems


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@226 3b7491f3-a168-0410-bf4b-c445ed680a29
parent 7e8d9e80
......@@ -24,8 +24,8 @@ static void cd_print_int(char * prefix, int arg1, int arg2)
}
static void cd_print_int64(char * prefix, int64_t arg1, int64_t arg2)
{
printf("- %s %lld\n", prefix, arg1);
printf("+ %s %lld\n", prefix, arg2);
printf("- %s %lld\n", prefix, lld(arg1));
printf("+ %s %lld\n", prefix, lld(arg2));
}
......@@ -117,23 +117,23 @@ int main(int argc, char ** argv)
if (cp_file1.counters[i] != cp_file2.counters[i]) {
printf("- ");
printf("%d\t%llu\t%s\t%lld\t...%s\n",
cp_file1.rank, cp_file1.hash, darshan_names[i],
cp_file1.counters[i], cp_file1.name_suffix);
cp_file1.rank, llu(cp_file1.hash), darshan_names[i],
lld(cp_file1.counters[i]), cp_file1.name_suffix);
printf("+ ");
printf("%d\t%llu\t%s\t%lld\t...%s\n",
cp_file2.rank, cp_file2.hash, darshan_names[i],
cp_file2.counters[i], cp_file2.name_suffix);
cp_file2.rank, llu(cp_file2.hash), darshan_names[i],
lld(cp_file2.counters[i]), cp_file2.name_suffix);
}
}
for(i=0; i<CP_F_NUM_INDICES; i++) {
if (cp_file1.fcounters[i] != cp_file2.fcounters[i]) {
printf("- ");
printf("%d\t%llu\t%s\t%f\t...%s\n",
cp_file1.rank, cp_file1.hash, darshan_f_names[i],
cp_file1.rank, llu(cp_file1.hash), darshan_f_names[i],
cp_file1.fcounters[i], cp_file1.name_suffix);
printf("+ ");
printf("%d\t%llu\t%s\t%f\t...%s\n",
cp_file2.rank, cp_file2.hash, darshan_f_names[i],
cp_file2.rank, llu(cp_file2.hash), darshan_f_names[i],
cp_file2.fcounters[i], cp_file2.name_suffix);
}
}
......
......@@ -66,8 +66,8 @@ int main(int argc, char **argv)
/* print job summary */
printf("# darshan log version: %s\n", job.version_string);
printf("# size of file statistics: %d bytes\n", sizeof(cp_file));
printf("# size of job statistics: %d bytes\n", sizeof(job));
printf("# size of file statistics: %lu bytes\n", sizeof(cp_file));
printf("# size of job statistics: %lu bytes\n", sizeof(job));
printf("# exe: %s\n", tmp_string);
printf("# uid: %d\n", job.uid);
printf("# start_time: %ld\n", (long)job.start_time);
......
......@@ -82,7 +82,7 @@ int main(int argc, char **argv)
return(-1);
}
printf("# size of file statistics: %d bytes\n", sizeof(cp_file));
printf("# size of file statistics: %lu bytes\n", sizeof(cp_file));
printf("# exe: %s\n", tmp_string);
printf("# uid: %d\n", job.uid);
printf("# start_time: %ld\n", (long)job.start_time);
......@@ -172,7 +172,7 @@ int main(int argc, char **argv)
percentage -= tmp_stream.total_out;
percentage = percentage / (i*sizeof(cp_file));
printf("%d\t%d\t%lu\t%f\n", i, i*sizeof(cp_file), tmp_stream.total_out,
printf("%d\t%lu\t%lu\t%f\n", i, i*sizeof(cp_file), tmp_stream.total_out,
percentage);
deflateEnd(&tmp_stream);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment