From a89563fa1eb3994c83da350b81db972e27bc7396 Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Wed, 3 Jun 2009 22:44:03 +0000 Subject: [PATCH] DEVEL15-ptserver-vicelog-missing-newlines-20090603 LICENSE IPL10 FIXES 124894 some ViceLog calls in ptserver were missing newlines. that's fixed. (cherry picked from commit 4310874d8f8b83b8a2c5840880d4f35059c67ea7) --- src/ptserver/ptprocs.c | 50 +++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/src/ptserver/ptprocs.c b/src/ptserver/ptprocs.c index 4c7b690..ded3877 100644 --- a/src/ptserver/ptprocs.c +++ b/src/ptserver/ptprocs.c @@ -249,7 +249,7 @@ SPR_INewEntry(struct rx_call *call, char aname[], afs_int32 aid, afs_int32 oid) code = iNewEntry(call, aname, aid, oid, &cid); osi_auditU(call, PTS_INewEntEvent, code, AUD_ID, aid, AUD_STR, aname, AUD_ID, oid, AUD_END); - ViceLog(25, ("PTS_INewEntry: code %d cid %d aid %d aname %s oid %d", code, cid, aid, aname, oid)); + ViceLog(25, ("PTS_INewEntry: code %d cid %d aid %d aname %s oid %d\n", code, cid, aid, aname, oid)); return code; } @@ -321,7 +321,7 @@ SPR_NewEntry(struct rx_call *call, char aname[], afs_int32 flag, afs_int32 oid, code = newEntry(call, aname, flag, oid, aid, &cid); osi_auditU(call, PTS_NewEntEvent, code, AUD_ID, *aid, AUD_STR, aname, AUD_ID, oid, AUD_END); - ViceLog(25, ("PTS_NewEntry: code %d cid %d aid %d aname %s oid %d", code, cid, *aid, aname, oid)); + ViceLog(25, ("PTS_NewEntry: code %d cid %d aid %d aname %s oid %d\n", code, cid, *aid, aname, oid)); return code; } @@ -384,7 +384,7 @@ SPR_WhereIsIt(struct rx_call *call, afs_int32 aid, afs_int32 *apos) code = whereIsIt(call, aid, apos, &cid); osi_auditU(call, PTS_WheIsItEvent, code, AUD_ID, aid, AUD_LONG, *apos, AUD_END); - ViceLog(125, ("PTS_WhereIsIt: code %d cid %d aid %d apos %d", code, cid, aid, *apos)); + ViceLog(125, ("PTS_WhereIsIt: code %d cid %d aid %d apos %d\n", code, cid, aid, *apos)); return code; } @@ -432,7 +432,7 @@ SPR_DumpEntry(struct rx_call *call, afs_int32 apos, code = dumpEntry(call, apos, aentry, &cid); osi_auditU(call, PTS_DmpEntEvent, code, AUD_LONG, apos, AUD_END); - ViceLog(125, ("PTS_DumpEntry: code %d cid %d apos %d", code, cid, apos)); + ViceLog(125, ("PTS_DumpEntry: code %d cid %d apos %d\n", code, cid, apos)); return code; } @@ -490,7 +490,7 @@ SPR_AddToGroup(struct rx_call *call, afs_int32 aid, afs_int32 gid) code = addToGroup(call, aid, gid, &cid); osi_auditU(call, PTS_AdToGrpEvent, code, AUD_ID, gid, AUD_ID, aid, AUD_END); - ViceLog(5, ("PTS_AddToGroup: code %d cid %d gid %d aid %d", code, cid, gid, aid)); + ViceLog(5, ("PTS_AddToGroup: code %d cid %d gid %d aid %d\n", code, cid, gid, aid)); return code; } @@ -576,7 +576,7 @@ SPR_NameToID(struct rx_call *call, namelist *aname, idlist *aid) code = nameToID(call, aname, aid); osi_auditU(call, PTS_NmToIdEvent, code, AUD_END); - ViceLog(125, ("PTS_NameToID: code %d", code)); + ViceLog(125, ("PTS_NameToID: code %d\n", code)); return code; } @@ -640,7 +640,7 @@ nameToID(struct rx_call *call, namelist *aname, idlist *aid) osi_audit(PTS_NmToIdEvent, code, AUD_STR, aname->namelist_val[i], AUD_ID, aid->idlist_val[i], AUD_END); - ViceLog(125, ("PTS_NameToID: code %d aname %s aid %d", code, + ViceLog(125, ("PTS_NameToID: code %d aname %s aid %d\n", code, aname->namelist_val[i], aid->idlist_val[i])); if (count++ > 50) { #ifndef AFS_PTHREAD_ENV @@ -669,7 +669,7 @@ SPR_IDToName(struct rx_call *call, idlist *aid, namelist *aname) code = idToName(call, aid, aname); osi_auditU(call, PTS_IdToNmEvent, code, AUD_END); - ViceLog(125, ("PTS_IDToName: code %d", code)); + ViceLog(125, ("PTS_IDToName: code %d\n", code)); return code; } @@ -716,7 +716,7 @@ idToName(struct rx_call *call, idlist *aid, namelist *aname) sprintf(aname->namelist_val[i], "%d", aid->idlist_val[i]); osi_audit(PTS_IdToNmEvent, code, AUD_ID, aid->idlist_val[i], AUD_STR, aname->namelist_val[i], AUD_END); - ViceLog(125, ("PTS_idToName: code %d aid %d aname %s", code, + ViceLog(125, ("PTS_idToName: code %d aid %d aname %s\n", code, aid->idlist_val[i], aname->namelist_val[i])); if (count++ > 50) { #ifndef AFS_PTHREAD_ENV @@ -741,7 +741,7 @@ SPR_Delete(struct rx_call *call, afs_int32 aid) code = Delete(call, aid, &cid); osi_auditU(call, PTS_DelEvent, code, AUD_ID, aid, AUD_END); - ViceLog(25, ("PTS_Delete: code %d cid %d aid %d", code, cid, aid)); + ViceLog(25, ("PTS_Delete: code %d cid %d aid %d\n", code, cid, aid)); return code; } @@ -989,7 +989,7 @@ SPR_UpdateEntry(struct rx_call *call, afs_int32 aid, char *name, code = UpdateEntry(call, aid, name, uentry, &cid); osi_auditU(call, PTS_UpdEntEvent, code, AUD_ID, aid, AUD_STR, name, AUD_END); - ViceLog(5, ("PTS_UpdateEntry: code %d cid %d aid %d name %s", code, cid, aid, name)); + ViceLog(5, ("PTS_UpdateEntry: code %d cid %d aid %d name %s\n", code, cid, aid, name)); return code; } @@ -1080,7 +1080,7 @@ SPR_RemoveFromGroup(struct rx_call *call, afs_int32 aid, afs_int32 gid) code = removeFromGroup(call, aid, gid, &cid); osi_auditU(call, PTS_RmFmGrpEvent, code, AUD_ID, gid, AUD_ID, aid, AUD_END); - ViceLog(5, ("PTS_RemoveFromGroup: code %d cid %d gid %d aid %d", code, cid, gid, aid)); + ViceLog(5, ("PTS_RemoveFromGroup: code %d cid %d gid %d aid %d\n", code, cid, gid, aid)); return code; } @@ -1162,7 +1162,7 @@ SPR_GetCPS(struct rx_call *call, afs_int32 aid, prlist *alist, afs_int32 *over) code = getCPS(call, aid, alist, over, &cid); osi_auditU(call, PTS_GetCPSEvent, code, AUD_ID, aid, AUD_END); - ViceLog(125, ("PTS_GetCPS: code %d cid %d aid %d", code, cid, aid)); + ViceLog(125, ("PTS_GetCPS: code %d cid %d aid %d\n", code, cid, aid)); return code; } @@ -1237,7 +1237,7 @@ SPR_GetCPS2(struct rx_call *call, afs_int32 aid, afs_int32 ahost, code = getCPS2(call, aid, ahost, alist, over, &cid); osi_auditU(call, PTS_GetCPS2Event, code, AUD_ID, aid, AUD_HOST, ahost, AUD_END); - ViceLog(125, ("PTS_GetCPS2: code %d cid %d aid %d ahost %d", code, cid, aid, ahost)); + ViceLog(125, ("PTS_GetCPS2: code %d cid %d aid %d ahost %d\n", code, cid, aid, ahost)); return code; } @@ -1321,7 +1321,7 @@ SPR_GetHostCPS(struct rx_call *call, afs_int32 ahost, prlist *alist, code = getHostCPS(call, ahost, alist, over); osi_auditU(call, PTS_GetHCPSEvent, code, AUD_HOST, ahost, AUD_END); - ViceLog(125, ("PTS_GetHostCPS: code %d ahost %d", code, ahost)); + ViceLog(125, ("PTS_GetHostCPS: code %d ahost %d\n", code, ahost)); return code; } @@ -1385,7 +1385,7 @@ SPR_ListMax(struct rx_call *call, afs_int32 *uid, afs_int32 *gid) code = listMax(call, uid, gid); osi_auditU(call, PTS_LstMaxEvent, code, AUD_END); - ViceLog(125, ("PTS_ListMax: code %d", code)); + ViceLog(125, ("PTS_ListMax: code %d\n", code)); return code; } @@ -1427,7 +1427,7 @@ SPR_SetMax(struct rx_call *call, afs_int32 aid, afs_int32 gflag) code = setMax(call, aid, gflag, &cid); osi_auditU(call, PTS_SetMaxEvent, code, AUD_ID, aid, AUD_LONG, gflag, AUD_END); - ViceLog(125, ("PTS_SetMax: code %d cid %d aid %d gflag %d", code, cid, aid, gflag)); + ViceLog(125, ("PTS_SetMax: code %d cid %d aid %d gflag %d\n", code, cid, aid, gflag)); return code; } @@ -1476,7 +1476,7 @@ SPR_ListEntry(struct rx_call *call, afs_int32 aid, struct prcheckentry *aentry) code = listEntry(call, aid, aentry, &cid); osi_auditU(call, PTS_LstEntEvent, code, AUD_ID, aid, AUD_END); - ViceLog(125, ("PTS_ListEntry: code %d cid %d aid %d", code, cid, aid)); + ViceLog(125, ("PTS_ListEntry: code %d cid %d aid %d\n", code, cid, aid)); return code; } @@ -1544,7 +1544,7 @@ SPR_ListEntries(struct rx_call *call, afs_int32 flag, afs_int32 startindex, code = listEntries(call, flag, startindex, bulkentries, nextstartindex, &cid); osi_auditU(call, PTS_LstEntsEvent, code, AUD_LONG, flag, AUD_END); - ViceLog(125, ("PTS_ListEntries: code %d cid %d flag %d", code, cid, flag)); + ViceLog(125, ("PTS_ListEntries: code %d cid %d flag %d\n", code, cid, flag)); return code; } @@ -1681,7 +1681,7 @@ SPR_ChangeEntry(struct rx_call *call, afs_int32 aid, char *name, afs_int32 oid, code = changeEntry(call, aid, name, oid, newid, &cid); osi_auditU(call, PTS_ChgEntEvent, code, AUD_ID, aid, AUD_STR, name, AUD_LONG, oid, AUD_LONG, newid, AUD_END); - ViceLog(5, ("PTS_ChangeEntry: code %d cid %d aid %d name %s oid %d newid %d", code, cid, aid, name, oid, newid)); + ViceLog(5, ("PTS_ChangeEntry: code %d cid %d aid %d name %s oid %d newid %d\n", code, cid, aid, name, oid, newid)); return code; } @@ -1744,7 +1744,7 @@ SPR_SetFieldsEntry(struct rx_call *call, setFieldsEntry(call, id, mask, flags, ngroups, nusers, spare1, spare2, &cid); osi_auditU(call, PTS_SetFldEntEvent, code, AUD_ID, id, AUD_END); - ViceLog(5, ("PTS_SetFieldsEntry: code %d cid %d id %d", code, cid, id)); + ViceLog(5, ("PTS_SetFieldsEntry: code %d cid %d id %d\n", code, cid, id)); return code; } @@ -1841,7 +1841,7 @@ SPR_ListElements(struct rx_call *call, afs_int32 aid, prlist *alist, code = listElements(call, aid, alist, over, &cid); osi_auditU(call, PTS_LstEleEvent, code, AUD_ID, aid, AUD_END); - ViceLog(125, ("PTS_ListElements: code %d cid %d aid %d", code, cid, aid)); + ViceLog(125, ("PTS_ListElements: code %d cid %d aid %d\n", code, cid, aid)); return code; } @@ -1903,7 +1903,7 @@ SPR_ListSuperGroups(struct rx_call *call, afs_int32 aid, prlist *alist, code = listSuperGroups(call, aid, alist, over, &cid); osi_auditU(call, PTS_LstSGrps, code, AUD_ID, aid, AUD_END); - ViceLog(125, ("PTS_ListSuperGroups: code %d cid %d aid %d", code, cid, aid)); + ViceLog(125, ("PTS_ListSuperGroups: code %d cid %d aid %d\n", code, cid, aid)); return code; #else return RXGEN_OPCODE; @@ -1976,7 +1976,7 @@ SPR_ListOwned(struct rx_call *call, afs_int32 aid, prlist *alist, code = listOwned(call, aid, alist, lastP, &cid); osi_auditU(call, PTS_LstOwnEvent, code, AUD_ID, aid, AUD_END); - ViceLog(125, ("PTS_ListOwned: code %d cid %d aid %d", code, cid, aid)); + ViceLog(125, ("PTS_ListOwned: code %d cid %d aid %d\n", code, cid, aid)); return code; } @@ -2062,7 +2062,7 @@ SPR_IsAMemberOf(struct rx_call *call, afs_int32 uid, afs_int32 gid, code = isAMemberOf(call, uid, gid, flag, &cid); osi_auditU(call, PTS_IsMemOfEvent, code, AUD_LONG, uid, AUD_LONG, gid, AUD_END); - ViceLog(125, ("PTS_IsAMemberOf: code %d cid %d uid %d gid %d", code, cid, uid, gid)); + ViceLog(125, ("PTS_IsAMemberOf: code %d cid %d uid %d gid %d\n", code, cid, uid, gid)); return code; } -- 1.9.4