Changeset 69171 in vbox for trunk/src/bldprogs
- Timestamp:
- Oct 23, 2017 4:03:51 PM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 118482
- Location:
- trunk/src/bldprogs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bldprogs/scm.cpp
r69166 r69171 1092 1092 pState->fFirst = true; 1093 1093 } 1094 if (pszFormat) 1095 { 1096 RTPrintf(pState 1097 ? "%s: info: " 1098 : "%s: info: ", 1099 g_szProgName); 1100 va_list va; 1101 va_start(va, pszFormat); 1102 RTPrintfV(pszFormat, va); 1103 va_end(va); 1104 } 1094 RTPrintf(pState 1095 ? "%s: info: " 1096 : "%s: info: ", 1097 g_szProgName); 1098 va_list va; 1099 va_start(va, pszFormat); 1100 RTPrintfV(pszFormat, va); 1101 va_end(va); 1102 } 1103 } 1104 1105 1106 /** 1107 * Prints the per file banner needed and the message level is high enough. 1108 * 1109 * @param pState The rewrite state. 1110 * @param iLevel The required verbosity level. 1111 */ 1112 void ScmVerboseBanner(PSCMRWSTATE pState, int iLevel) 1113 { 1114 if (iLevel <= g_iVerbosity && !pState->fFirst) 1115 { 1116 RTPrintf("%s: info: --= Rewriting '%s' =--\n", g_szProgName, pState->pszFilename); 1117 pState->fFirst = true; 1105 1118 } 1106 1119 } … … 1207 1220 if (ScmStreamIsText(&Stream1)) 1208 1221 { 1209 ScmVerbose (pState, 3, NULL);1222 ScmVerboseBanner(pState, 3); 1210 1223 1211 1224 /* … … 1275 1288 else 1276 1289 { 1277 ScmVerbose (pState, 1, NULL);1290 ScmVerboseBanner(pState, 1); 1278 1291 ScmDiffStreams(pszFilename, &Stream1, pIn, g_fDiffIgnoreEol, 1279 1292 g_fDiffIgnoreLeadingWS, g_fDiffIgnoreTrailingWS, g_fDiffSpecialChars, … … 1300 1313 1301 1314 if (!fModified && !pState->cSvnPropChanges) 1302 ScmVerbose(pState, 3, " no change\n", pszFilename);1315 ScmVerbose(pState, 3, "%s: no change\n", pszFilename); 1303 1316 } 1304 1317 else -
trunk/src/bldprogs/scm.h
r69166 r69171 340 340 341 341 void ScmVerbose(PSCMRWSTATE pState, int iLevel, const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(3, 4); 342 void ScmVerboseBanner(PSCMRWSTATE pState, int iLevel); 342 343 bool ScmError(PSCMRWSTATE pState, int rc, const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(3, 4); 343 344
Note:
See TracChangeset
for help on using the changeset viewer.