Ignore:
Timestamp:
Jun 22, 2016, 7:03:55 PM (9 years ago)
Author:
bird
Message:

prof/dbg: uninitialized variable, missing printf args, pedantic formatting types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kProfiler2/prfreader.cpp.h

    r29 r77  
    6464        {
    6565            fprintf(pOut, "The module segment record at 0x%x has an invalid path length 0x%x it the actual length is 0x%x\n",
    66                     pCur->cchPath, strlen(pCur->szPath));
     66                    off, pCur->cchPath, strlen(pCur->szPath));
    6767            return false;
    6868        }
     
    12281228                fprintf(pOut,
    12291229                        "    <td><a href=\"#Func-%u\">",
    1230                         pReportFunc - pReport->paFunctions);
     1230                        (unsigned)(uintptr_t)(pReportFunc - pReport->paFunctions));
    12311231                if (pReportFunc->pSym)
    12321232                    fprintf(pOut, "%s</a></td>\n", pReportFunc->pSym->szName);
     
    15591559                "<a name=\"Mod-%u\">\n"
    15601560                "<tr><td class=\"BlankRow\" colspan=7><a name=\"Module-%u\">&nbsp;</a></td></tr>\n",
    1561                 iMod);
     1561                iMod, iMod);
    15621562        KPRF_NAME(HtmlWriteRowU32)(pOut, "Module No.", iMod, NULL);
    15631563        KPRF_NAME(HtmlWriteRowString)(pOut, "Name", "Name", "%s", pMod->pFirstSeg->pModSeg->szPath);
Note: See TracChangeset for help on using the changeset viewer.