From 2267640e036f6d361e55a5fb67df9c616b1c7942 Mon Sep 17 00:00:00 2001 From: bchristiansen Date: Tue, 23 Feb 2010 17:48:41 +0000 Subject: [PATCH] Fixed fprintf comipler warnings git-svn-id: svn://opensvn.adaptivecomputing.com/maui/trunk@131 3f5042e3-fb1d-0410-be18-d6ca2573e517 --- src/moab/MJob.c | 2 +- src/server/mprof.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/moab/MJob.c b/src/moab/MJob.c index dd11c2f..1ce19b2 100644 --- a/src/moab/MJob.c +++ b/src/moab/MJob.c @@ -7702,7 +7702,7 @@ int MJobWriteStats( if (MJobToTString(J,DEFAULT_WORKLOAD_TRACE_VERSION,Buf,sizeof(Buf)) == SUCCESS) { - fprintf(MSched.statfp,Buf); + fprintf(MSched.statfp,"%s",Buf); fflush(MSched.statfp); diff --git a/src/server/mprof.c b/src/server/mprof.c index 45e797d..8670c5c 100644 --- a/src/server/mprof.c +++ b/src/server/mprof.c @@ -1501,7 +1501,7 @@ int Mode) } else { - fprintf(stdout, + fprintf(stdout,"%s", (Mode & (1 << mMatrix)) ? MNull : Null); } } @@ -1517,7 +1517,7 @@ int Mode) } else { - fprintf(stdout, + fprintf(stdout,"%s", (Mode & (1 << mMatrix)) ? MNull : Null); fprintf(stdout,"\n"); @@ -1541,7 +1541,7 @@ int Mode) } else { - fprintf(stdout, + fprintf(stdout,"%s", (Mode & (1 << mMatrix)) ? MNull : Null); } }