Ignore:
Timestamp:
Feb 14, 2000, 6:29:25 PM (26 years ago)
Author:
bird
Message:

More fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/database/StateUpd.cpp

    r2778 r2780  
    1 /* $Id: StateUpd.cpp,v 1.15 2000-02-14 17:26:34 bird Exp $
     1/* $Id: StateUpd.cpp,v 1.16 2000-02-14 17:29:25 bird Exp $
    22 *
    33 * StateUpd - Scans source files for API functions and imports data on them.
     
    290290
    291291        /* write status to log */
    292         ul2 = dbGetNumberOfUpdatedFunction(options.lDllRefcode);
    293         ul1 = dbCountFunctionInDll(options.lDllRefcode, FALSE);
    294         ul0 = dbCountFunctionInDll(options.lDllRefcode, TRUE);
    295         if (ul0 > ul2)
    296         {
    297             fprintf(phSignal, "%d functions where not found (found=%d, total=%d).\n", ul0 - ul2, ul2, ul0);
    298             ulRc += 0x00010000;
    299         }
    300         fprintf(phLog, "-------------------------------------------------\n");
    301         fprintf(phLog, "-------- Functions which was not updated --------\n");
    302         dbGetNotUpdatedFunction(options.lDllRefcode, dbNotUpdatedCallBack);
    303         fprintf(phLog, "-------------------------------------------------\n");
    304         fprintf(phLog, "-------------------------------------------------\n\n");
    305         fprintf(phLog,"Number of function in this DLL:        %4ld (%ld)\n", ul1, ul0);
    306         fprintf(phLog,"Number of successfully processed APIs: %4ld (%ld)\n", (long)(0x0000FFFF & ulRc), ul2);
     292        if (options.fIntegrityOnly)
     293        {
     294            ul2 = dbGetNumberOfUpdatedFunction(options.lDllRefcode);
     295            ul1 = dbCountFunctionInDll(options.lDllRefcode, FALSE);
     296            ul0 = dbCountFunctionInDll(options.lDllRefcode, TRUE);
     297            if (ul0 > ul2)
     298            {
     299                fprintf(phSignal, "%d functions where not found (found=%d, total=%d).\n", ul0 - ul2, ul2, ul0);
     300                ulRc += 0x00010000;
     301            }
     302            fprintf(phLog, "-------------------------------------------------\n");
     303            fprintf(phLog, "-------- Functions which was not updated --------\n");
     304            dbGetNotUpdatedFunction(options.lDllRefcode, dbNotUpdatedCallBack);
     305            fprintf(phLog, "-------------------------------------------------\n");
     306            fprintf(phLog, "-------------------------------------------------\n\n");
     307            fprintf(phLog,"Number of function in this DLL:        %4ld (%ld)\n", ul1, ul0);
     308            fprintf(phLog,"Number of successfully processed APIs: %4ld (%ld)\n", (long)(0x0000FFFF & ulRc), ul2);
     309        }
    307310        fprintf(phLog,"Number of signals:                     %4ld\n", (long)(ulRc >> 16));
    308311
     
    314317
    315318        /* warn if error during processing. */
    316         fprintf(stdout,"Number of function in this DLL:        %4ld (%ld)\n", ul1, ul0);
    317         fprintf(stdout,"Number of successfully processed APIs: %4ld (%ld)\n", (long)(0x0000FFFF & ulRc), ul2);
     319        if (options.fIntegrityOnly)
     320        {
     321            fprintf(stdout,"Number of function in this DLL:        %4ld (%ld)\n", ul1, ul0);
     322            fprintf(stdout,"Number of successfully processed APIs: %4ld (%ld)\n", (long)(0x0000FFFF & ulRc), ul2);
     323        }
    318324        fprintf(stdout,"Number of signals:                     %4ld\n", (long)(ulRc >> 16));
    319325        if ((int)(ulRc >> 16) > 0)
Note: See TracChangeset for help on using the changeset viewer.