FIX: added space in MCred.c in MUSNPrintf's and printing problem in MSUSendData()

Problem Ref:	MAUI PATCH
Organization:	Eygene Ryabinkin
Contact:	Eyegene Ryabinkin



git-svn-id: svn://opensvn.adaptivecomputing.com/maui/trunk@96 3f5042e3-fb1d-0410-be18-d6ca2573e517
This commit is contained in:
bchristiansen 2008-06-12 16:26:20 +00:00
parent d598ba45be
commit b7592c8bb1
2 changed files with 37 additions and 38 deletions

View File

@ -1075,10 +1075,9 @@ int MSUSendData(
MCKeyword[mckStatusCode],
scSUCCESS);
Align = (int)strlen(S->SBuffer) + (int)strlen(MCKeyword[mckArgs]);
Align = (int)strlen(tmpSBuf) + (int)strlen(MCKeyword[mckArgs]);
MUSNPrintF(&BPtr,&BSpace,"%s%*s%s",
S->SBuffer,
MUSNPrintF(&BPtr,&BSpace,"%*s%s",
16 - (Align % 16),
" ",
MCKeyword[mckData]);

View File

@ -1691,7 +1691,7 @@ char *MCredShowAttrs(
if (Priority != 0)
{
MUSNPrintF(&BPtr,&BSpace,"%s=%ld",
MUSNPrintF(&BPtr,&BSpace," %s=%ld",
MCredAttr[pindex],
Priority);
}
@ -1703,7 +1703,7 @@ char *MCredShowAttrs(
if ((Mode & (1 << mcsLimits)) &&
((ptr = __MCredShowLimit(AP,mptMaxJob,0,ShowUsage)) != NULL))
{
MUSNPrintF(&BPtr,&BSpace,"%s=%s",
MUSNPrintF(&BPtr,&BSpace," %s=%s",
MCredAttr[pindex],
ptr);
}
@ -1715,7 +1715,7 @@ char *MCredShowAttrs(
if ((Mode & (1 << mcsLimits)) &&
((ptr = __MCredShowLimit(AP,mptMaxNode,0,ShowUsage)) != NULL))
{
MUSNPrintF(&BPtr,&BSpace,"%s=%s",
MUSNPrintF(&BPtr,&BSpace," %s=%s",
MCredAttr[pindex],
ptr);
}
@ -1727,7 +1727,7 @@ char *MCredShowAttrs(
if ((Mode & (1 << mcsLimits)) &&
((ptr = __MCredShowLimit(AP,mptMaxPE,0,ShowUsage)) != NULL))
{
MUSNPrintF(&BPtr,&BSpace,"%s=%s",
MUSNPrintF(&BPtr,&BSpace," %s=%s",
MCredAttr[pindex],
ptr);
}
@ -1739,7 +1739,7 @@ char *MCredShowAttrs(
if ((Mode & (1 << mcsLimits)) &&
((ptr = __MCredShowLimit(AP,mptMaxProc,0,ShowUsage)) != NULL))
{
MUSNPrintF(&BPtr,&BSpace,"%s=%s",
MUSNPrintF(&BPtr,&BSpace," %s=%s",
MCredAttr[pindex],
ptr);
}
@ -1751,7 +1751,7 @@ char *MCredShowAttrs(
if ((Mode & (1 << mcsLimits)) &&
((ptr = __MCredShowLimit(AP,mptMaxPS,0,ShowUsage)) != NULL))
{
MUSNPrintF(&BPtr,&BSpace,"%s=%s",
MUSNPrintF(&BPtr,&BSpace," %s=%s",
MCredAttr[pindex],
ptr);
}
@ -1763,7 +1763,7 @@ char *MCredShowAttrs(
if ((Mode & (1 << mcsLimits)) &&
((ptr = __MCredShowLimit(AP,mptMaxWC,0,ShowUsage)) != NULL))
{
MUSNPrintF(&BPtr,&BSpace,"%s=%s",
MUSNPrintF(&BPtr,&BSpace," %s=%s",
MCredAttr[pindex],
ptr);
}
@ -1775,7 +1775,7 @@ char *MCredShowAttrs(
if ((Mode & (1 << mcsLimits)) &&
((ptr = __MCredShowLimit(AP,mptMaxMem,0,ShowUsage)) != NULL))
{
MUSNPrintF(&BPtr,&BSpace,"%s=%s",
MUSNPrintF(&BPtr,&BSpace," %s=%s",
MCredAttr[pindex],
ptr);
}
@ -1787,7 +1787,7 @@ char *MCredShowAttrs(
if ((Mode & (1 << mcsLimits)) &&
((ptr = __MCredShowLimit(IP,mptMaxJob,0,ShowUsage)) != NULL))
{
MUSNPrintF(&BPtr,&BSpace,"%s=%s",
MUSNPrintF(&BPtr,&BSpace," %s=%s",
MCredAttr[pindex],
ptr);
}
@ -1799,7 +1799,7 @@ char *MCredShowAttrs(
if ((Mode & (1 << mcsLimits)) &&
((ptr = __MCredShowLimit(IP,mptMaxNode,0,ShowUsage)) != NULL))
{
MUSNPrintF(&BPtr,&BSpace,"%s=%s",
MUSNPrintF(&BPtr,&BSpace," %s=%s",
MCredAttr[pindex],
ptr);
}
@ -1811,7 +1811,7 @@ char *MCredShowAttrs(
if ((Mode & (1 << mcsLimits)) &&
((ptr = __MCredShowLimit(IP,mptMaxPE,0,ShowUsage)) != NULL))
{
MUSNPrintF(&BPtr,&BSpace,"%s=%s",
MUSNPrintF(&BPtr,&BSpace," %s=%s",
MCredAttr[pindex],
ptr);
}
@ -1823,7 +1823,7 @@ char *MCredShowAttrs(
if ((Mode & (1 << mcsLimits)) &&
((ptr = __MCredShowLimit(IP,mptMaxProc,0,ShowUsage)) != NULL))
{
MUSNPrintF(&BPtr,&BSpace,"%s=%s",
MUSNPrintF(&BPtr,&BSpace," %s=%s",
MCredAttr[pindex],
ptr);
}
@ -1835,7 +1835,7 @@ char *MCredShowAttrs(
if ((Mode & (1 << mcsLimits)) &&
((ptr = __MCredShowLimit(IP,mptMaxPS,0,ShowUsage)) != NULL))
{
MUSNPrintF(&BPtr,&BSpace,"%s=%s",
MUSNPrintF(&BPtr,&BSpace," %s=%s",
MCredAttr[pindex],
ptr);
}
@ -1847,7 +1847,7 @@ char *MCredShowAttrs(
if ((Mode & (1 << mcsLimits)) &&
((ptr = __MCredShowLimit(IP,mptMaxWC,0,ShowUsage)) != NULL))
{
MUSNPrintF(&BPtr,&BSpace,"%s=%s",
MUSNPrintF(&BPtr,&BSpace," %s=%s",
MCredAttr[pindex],
ptr);
}
@ -1859,7 +1859,7 @@ char *MCredShowAttrs(
if ((Mode & (1 << mcsLimits)) &&
((ptr = __MCredShowLimit(IP,mptMaxMem,0,ShowUsage)) != NULL))
{
MUSNPrintF(&BPtr,&BSpace,"%s=%s",
MUSNPrintF(&BPtr,&BSpace," %s=%s",
MCredAttr[pindex],
ptr);
}
@ -1871,7 +1871,7 @@ char *MCredShowAttrs(
if ((Mode & (1 << mcsLimits)) &&
((ptr = __MCredShowLimit(OAP,mptMaxJob,0,ShowUsage)) != NULL))
{
MUSNPrintF(&BPtr,&BSpace,"%s=%s",
MUSNPrintF(&BPtr,&BSpace," %s=%s",
MCredAttr[pindex],
ptr);
}
@ -1883,7 +1883,7 @@ char *MCredShowAttrs(
if ((Mode & (1 << mcsLimits)) &&
((ptr = __MCredShowLimit(OAP,mptMaxNode,0,ShowUsage)) != NULL))
{
MUSNPrintF(&BPtr,&BSpace,"%s=%s",
MUSNPrintF(&BPtr,&BSpace," %s=%s",
MCredAttr[pindex],
ptr);
}
@ -1895,7 +1895,7 @@ char *MCredShowAttrs(
if ((Mode & (1 << mcsLimits)) &&
((ptr = __MCredShowLimit(OAP,mptMaxPE,0,ShowUsage)) != NULL))
{
MUSNPrintF(&BPtr,&BSpace,"%s=%s",
MUSNPrintF(&BPtr,&BSpace," %s=%s",
MCredAttr[pindex],
ptr);
}
@ -1907,7 +1907,7 @@ char *MCredShowAttrs(
if ((Mode & (1 << mcsLimits)) &&
((ptr = __MCredShowLimit(OAP,mptMaxProc,0,ShowUsage)) != NULL))
{
MUSNPrintF(&BPtr,&BSpace,"%s=%s",
MUSNPrintF(&BPtr,&BSpace," %s=%s",
MCredAttr[pindex],
ptr);
}
@ -1919,7 +1919,7 @@ char *MCredShowAttrs(
if ((Mode & (1 << mcsLimits)) &&
((ptr = __MCredShowLimit(OAP,mptMaxPS,0,ShowUsage)) != NULL))
{
MUSNPrintF(&BPtr,&BSpace,"%s=%s",
MUSNPrintF(&BPtr,&BSpace," %s=%s",
MCredAttr[pindex],
ptr);
}
@ -1931,7 +1931,7 @@ char *MCredShowAttrs(
if ((Mode & (1 << mcsLimits)) &&
((ptr = __MCredShowLimit(OAP,mptMaxWC,0,ShowUsage)) != NULL))
{
MUSNPrintF(&BPtr,&BSpace,"%s=%s",
MUSNPrintF(&BPtr,&BSpace," %s=%s",
MCredAttr[pindex],
ptr);
}
@ -1943,7 +1943,7 @@ char *MCredShowAttrs(
if ((Mode & (1 << mcsLimits)) &&
((ptr = __MCredShowLimit(OAP,mptMaxMem,0,ShowUsage)) != NULL))
{
MUSNPrintF(&BPtr,&BSpace,"%s=%s",
MUSNPrintF(&BPtr,&BSpace," %s=%s",
MCredAttr[pindex],
ptr);
}
@ -1955,7 +1955,7 @@ char *MCredShowAttrs(
if ((Mode & (1 << mcsLimits)) &&
((ptr = __MCredShowLimit(OIP,mptMaxJob,0,ShowUsage)) != NULL))
{
MUSNPrintF(&BPtr,&BSpace,"%s=%s",
MUSNPrintF(&BPtr,&BSpace," %s=%s",
MCredAttr[pindex],
ptr);
}
@ -1967,7 +1967,7 @@ char *MCredShowAttrs(
if ((Mode & (1 << mcsLimits)) &&
((ptr = __MCredShowLimit(OIP,mptMaxNode,0,ShowUsage)) != NULL))
{
MUSNPrintF(&BPtr,&BSpace,"%s=%s",
MUSNPrintF(&BPtr,&BSpace," %s=%s",
MCredAttr[pindex],
ptr);
}
@ -1979,7 +1979,7 @@ char *MCredShowAttrs(
if ((Mode & (1 << mcsLimits)) &&
((ptr = __MCredShowLimit(OIP,mptMaxPE,0,ShowUsage)) != NULL))
{
MUSNPrintF(&BPtr,&BSpace,"%s=%s",
MUSNPrintF(&BPtr,&BSpace," %s=%s",
MCredAttr[pindex],
ptr);
}
@ -1991,7 +1991,7 @@ char *MCredShowAttrs(
if ((Mode & (1 << mcsLimits)) &&
((ptr = __MCredShowLimit(OIP,mptMaxProc,0,ShowUsage)) != NULL))
{
MUSNPrintF(&BPtr,&BSpace,"%s=%s",
MUSNPrintF(&BPtr,&BSpace," %s=%s",
MCredAttr[pindex],
ptr);
}
@ -2003,7 +2003,7 @@ char *MCredShowAttrs(
if ((Mode & (1 << mcsLimits)) &&
((ptr = __MCredShowLimit(OIP,mptMaxPS,0,ShowUsage)) != NULL))
{
MUSNPrintF(&BPtr,&BSpace,"%s=%s",
MUSNPrintF(&BPtr,&BSpace," %s=%s",
MCredAttr[pindex],
ptr);
}
@ -2015,7 +2015,7 @@ char *MCredShowAttrs(
if ((Mode & (1 << mcsLimits)) &&
((ptr = __MCredShowLimit(OIP,mptMaxWC,0,ShowUsage)) != NULL))
{
MUSNPrintF(&BPtr,&BSpace,"%s=%s",
MUSNPrintF(&BPtr,&BSpace," %s=%s",
MCredAttr[pindex],
ptr);
}
@ -2027,7 +2027,7 @@ char *MCredShowAttrs(
if ((Mode & (1 << mcsLimits)) &&
((ptr = __MCredShowLimit(OIP,mptMaxMem,0,ShowUsage)) != NULL))
{
MUSNPrintF(&BPtr,&BSpace,"%s=%s",
MUSNPrintF(&BPtr,&BSpace," %s=%s",
MCredAttr[pindex],
ptr);
}
@ -2039,7 +2039,7 @@ char *MCredShowAttrs(
if ((Mode & (1 << mcsLimits)) &&
((ptr = __MCredShowLimit(OJP,mptMaxNode,0,ShowUsage)) != NULL))
{
MUSNPrintF(&BPtr,&BSpace,"%s=%s",
MUSNPrintF(&BPtr,&BSpace," %s=%s",
MCredAttr[pindex],
ptr);
}
@ -2051,7 +2051,7 @@ char *MCredShowAttrs(
if ((Mode & (1 << mcsLimits)) &&
((ptr = __MCredShowLimit(OJP,mptMaxPE,0,ShowUsage)) != NULL))
{
MUSNPrintF(&BPtr,&BSpace,"%s=%s",
MUSNPrintF(&BPtr,&BSpace," %s=%s",
MCredAttr[pindex],
ptr);
}
@ -2063,7 +2063,7 @@ char *MCredShowAttrs(
if ((Mode & (1 << mcsLimits)) &&
((ptr = __MCredShowLimit(OJP,mptMaxProc,0,ShowUsage)) != NULL))
{
MUSNPrintF(&BPtr,&BSpace,"%s=%s",
MUSNPrintF(&BPtr,&BSpace," %s=%s",
MCredAttr[pindex],
ptr);
}
@ -2075,7 +2075,7 @@ char *MCredShowAttrs(
if ((Mode & (1 << mcsLimits)) &&
((ptr = __MCredShowLimit(OJP,mptMaxPS,0,ShowUsage)) != NULL))
{
MUSNPrintF(&BPtr,&BSpace,"%s=%s",
MUSNPrintF(&BPtr,&BSpace," %s=%s",
MCredAttr[pindex],
ptr);
}
@ -2087,7 +2087,7 @@ char *MCredShowAttrs(
if ((Mode & (1 << mcsLimits)) &&
((ptr = __MCredShowLimit(OJP,mptMaxWC,0,ShowUsage)) != NULL))
{
MUSNPrintF(&BPtr,&BSpace,"%s=%s",
MUSNPrintF(&BPtr,&BSpace," %s=%s",
MCredAttr[pindex],
ptr);
}
@ -2099,7 +2099,7 @@ char *MCredShowAttrs(
if ((Mode & (1 << mcsLimits)) &&
((ptr = __MCredShowLimit(OJP,mptMaxMem,0,ShowUsage)) != NULL))
{
MUSNPrintF(&BPtr,&BSpace,"%s=%s",
MUSNPrintF(&BPtr,&BSpace," %s=%s",
MCredAttr[pindex],
ptr);
}