Commit 1458497d authored by Philip Carns's avatar Philip Carns

fix bumbled printf warnings for 32 and 64 bit machines


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@235 3b7491f3-a168-0410-bf4b-c445ed680a29
parent 3de6b28c
...@@ -5,8 +5,8 @@ int main(int argc, char **argv) ...@@ -5,8 +5,8 @@ int main(int argc, char **argv)
{ {
printf("version: %s\n", CP_VERSION); printf("version: %s\n", CP_VERSION);
printf("CP_JOB_RECORD_SIZE: %d\n", CP_JOB_RECORD_SIZE); printf("CP_JOB_RECORD_SIZE: %d\n", CP_JOB_RECORD_SIZE);
printf("CP_EXE_LEN: %lu\n", CP_EXE_LEN); printf("CP_EXE_LEN: %zu\n", CP_EXE_LEN);
printf("CP_FILE_RECORD_SIZE: %lu\n", CP_FILE_RECORD_SIZE); printf("CP_FILE_RECORD_SIZE: %zu\n", CP_FILE_RECORD_SIZE);
printf("CP_NAME_SUFFIX_LEN: %d\n", CP_NAME_SUFFIX_LEN); printf("CP_NAME_SUFFIX_LEN: %d\n", CP_NAME_SUFFIX_LEN);
printf("CP_NUM_INDICES: %d\n", CP_NUM_INDICES); printf("CP_NUM_INDICES: %d\n", CP_NUM_INDICES);
printf("CP_F_NUM_INDICES: %d\n", CP_F_NUM_INDICES); printf("CP_F_NUM_INDICES: %d\n", CP_F_NUM_INDICES);
......
...@@ -66,8 +66,8 @@ int main(int argc, char **argv) ...@@ -66,8 +66,8 @@ int main(int argc, char **argv)
/* print job summary */ /* print job summary */
printf("# darshan log version: %s\n", job.version_string); printf("# darshan log version: %s\n", job.version_string);
printf("# size of file statistics: %lu bytes\n", sizeof(cp_file)); printf("# size of file statistics: %zu bytes\n", sizeof(cp_file));
printf("# size of job statistics: %lu bytes\n", sizeof(job)); printf("# size of job statistics: %zu bytes\n", sizeof(job));
printf("# exe: %s\n", tmp_string); printf("# exe: %s\n", tmp_string);
printf("# uid: %d\n", job.uid); printf("# uid: %d\n", job.uid);
printf("# start_time: %ld\n", (long)job.start_time); printf("# start_time: %ld\n", (long)job.start_time);
......
...@@ -82,7 +82,7 @@ int main(int argc, char **argv) ...@@ -82,7 +82,7 @@ int main(int argc, char **argv)
return(-1); return(-1);
} }
printf("# size of file statistics: %lu bytes\n", sizeof(cp_file)); printf("# size of file statistics: %zu bytes\n", sizeof(cp_file));
printf("# exe: %s\n", tmp_string); printf("# exe: %s\n", tmp_string);
printf("# uid: %d\n", job.uid); printf("# uid: %d\n", job.uid);
printf("# start_time: %ld\n", (long)job.start_time); printf("# start_time: %ld\n", (long)job.start_time);
...@@ -172,7 +172,7 @@ int main(int argc, char **argv) ...@@ -172,7 +172,7 @@ int main(int argc, char **argv)
percentage -= tmp_stream.total_out; percentage -= tmp_stream.total_out;
percentage = percentage / (i*sizeof(cp_file)); percentage = percentage / (i*sizeof(cp_file));
printf("%d\t%lu\t%lu\t%f\n", i, i*sizeof(cp_file), tmp_stream.total_out, printf("%d\t%zu\t%lu\t%f\n", i, i*sizeof(cp_file), tmp_stream.total_out,
percentage); percentage);
deflateEnd(&tmp_stream); 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