Commit 27b8fb22 authored by Philip Carns's avatar Philip Carns

merge printf warning fixes from trunk


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/branches/darshan-1.1@236 3b7491f3-a168-0410-bf4b-c445ed680a29
parent 686c85a1
......@@ -5,8 +5,8 @@ int main(int argc, char **argv)
{
printf("version: %s\n", CP_VERSION);
printf("CP_JOB_RECORD_SIZE: %d\n", CP_JOB_RECORD_SIZE);
printf("CP_EXE_LEN: %lu\n", CP_EXE_LEN);
printf("CP_FILE_RECORD_SIZE: %lu\n", CP_FILE_RECORD_SIZE);
printf("CP_EXE_LEN: %zu\n", CP_EXE_LEN);
printf("CP_FILE_RECORD_SIZE: %zu\n", CP_FILE_RECORD_SIZE);
printf("CP_NAME_SUFFIX_LEN: %d\n", CP_NAME_SUFFIX_LEN);
printf("CP_NUM_INDICES: %d\n", CP_NUM_INDICES);
printf("CP_F_NUM_INDICES: %d\n", CP_F_NUM_INDICES);
......
......@@ -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: %lu bytes\n", sizeof(cp_file));
printf("# size of job statistics: %lu bytes\n", sizeof(job));
printf("# size of file statistics: %zu bytes\n", sizeof(cp_file));
printf("# size of job statistics: %zu 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: %lu bytes\n", sizeof(cp_file));
printf("# size of file statistics: %zu 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%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);
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