VirtualBox

Changeset 69171 in vbox


Ignore:
Timestamp:
Oct 23, 2017 4:03:51 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
118482
Message:

scm: License and copyright updating. [build fix]

Location:
trunk/src/bldprogs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bldprogs/scm.cpp

    r69166 r69171  
    10921092            pState->fFirst = true;
    10931093        }
    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 */
     1112void 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;
    11051118    }
    11061119}
     
    12071220    if (ScmStreamIsText(&Stream1))
    12081221    {
    1209         ScmVerbose(pState, 3, NULL);
     1222        ScmVerboseBanner(pState, 3);
    12101223
    12111224        /*
     
    12751288                                else
    12761289                                {
    1277                                     ScmVerbose(pState, 1, NULL);
     1290                                    ScmVerboseBanner(pState, 1);
    12781291                                    ScmDiffStreams(pszFilename, &Stream1, pIn, g_fDiffIgnoreEol,
    12791292                                                   g_fDiffIgnoreLeadingWS, g_fDiffIgnoreTrailingWS, g_fDiffSpecialChars,
     
    13001313
    13011314                            if (!fModified && !pState->cSvnPropChanges)
    1302                                 ScmVerbose(pState, 3, "no change\n", pszFilename);
     1315                                ScmVerbose(pState, 3, "%s: no change\n", pszFilename);
    13031316                        }
    13041317                        else
  • trunk/src/bldprogs/scm.h

    r69166 r69171  
    340340
    341341void ScmVerbose(PSCMRWSTATE pState, int iLevel, const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(3, 4);
     342void ScmVerboseBanner(PSCMRWSTATE pState, int iLevel);
    342343bool ScmError(PSCMRWSTATE pState, int rc, const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(3, 4);
    343344
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette