Changeset 3680 for trunk/src


Ignore:
Timestamp:
Aug 13, 2025, 1:32:04 AM (4 weeks ago)
Author:
bird
Message:

kmk/dir-nt-bird.c: Shut up pedantic fprintf format type warnings (VC++).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/dir-nt-bird.c

    r3359 r3680  
    468468    fputs("\n"
    469469          "# NT dir cache stats:\n", pOut);
    470     fprintf(pOut, "#  %u objects, taking up %u (%#x) bytes, avg %u bytes\n",
     470    fprintf(pOut, "#  %" KSIZE_PRI_U " objects, taking up %" KSIZE_PRI_U "(%#" KSIZE_PRI_X ") bytes, avg %" KSIZE_PRI_U " bytes\n",
    471471            g_pFsCache->cObjects, g_pFsCache->cbObjects, g_pFsCache->cbObjects, g_pFsCache->cbObjects / g_pFsCache->cObjects);
    472     fprintf(pOut, "#  %u A path hashes, taking up %u (%#x) bytes, avg %u bytes, %u collision\n",
     472    fprintf(pOut, "#  %" KSIZE_PRI_U " A path hashes, taking up %" KSIZE_PRI_U " (%#" KSIZE_PRI_X ") bytes, avg %" KSIZE_PRI_U " bytes, %" KSIZE_PRI_U " collision\n",
    473473            g_pFsCache->cAnsiPaths, g_pFsCache->cbAnsiPaths, g_pFsCache->cbAnsiPaths,
    474474            g_pFsCache->cbAnsiPaths / K_MAX(g_pFsCache->cAnsiPaths, 1), g_pFsCache->cAnsiPathCollisions);
    475475#ifdef KFSCACHE_CFG_UTF16
    476     fprintf(pOut, "#  %u W path hashes, taking up %u (%#x) bytes, avg %u bytes, %u collisions\n",
     476    fprintf(pOut, "#  %" KSIZE_PRI_U " W path hashes, taking up %" KSIZE_PRI_U " (%#" KSIZE_PRI_X ") bytes, avg %" KSIZE_PRI_U " bytes, %" KSIZE_PRI_U " collisions\n",
    477477            g_pFsCache->cUtf16Paths, g_pFsCache->cbUtf16Paths, g_pFsCache->cbUtf16Paths,
    478478            g_pFsCache->cbUtf16Paths / K_MAX(g_pFsCache->cUtf16Paths, 1), g_pFsCache->cUtf16PathCollisions);
    479479#endif
    480     fprintf(pOut, "#  %u child hash tables, total of %u entries, %u children inserted, %u collisions\n",
     480    fprintf(pOut, "#  %" KSIZE_PRI_U " child hash tables, total of %" KSIZE_PRI_U " entries, %" KSIZE_PRI_U " children inserted, %" KSIZE_PRI_U " collisions\n",
    481481            g_pFsCache->cChildHashTabs, g_pFsCache->cChildHashEntriesTotal,
    482482            g_pFsCache->cChildHashed, g_pFsCache->cChildHashCollisions);
    483483
    484484    cMisses = g_pFsCache->cLookups - g_pFsCache->cPathHashHits - g_pFsCache->cWalkHits;
    485     fprintf(pOut, "#  %u lookups: %u (%" KU64_PRI " %%) path hash hits, %u (%" KU64_PRI "%%) walks hits, %u (%" KU64_PRI "%%) misses\n",
     485    fprintf(pOut, "#  %" KSIZE_PRI_U " lookups: %" KSIZE_PRI_U " (%" KU64_PRI " %%) path hash hits, %" KSIZE_PRI_U " (%" KU64_PRI "%%) walks hits, %" KU32_PRI " (%" KU64_PRI "%%) misses\n",
    486486            g_pFsCache->cLookups,
    487487            g_pFsCache->cPathHashHits, g_pFsCache->cPathHashHits * (KU64)100 / K_MAX(g_pFsCache->cLookups, 1),
    488488            g_pFsCache->cWalkHits, g_pFsCache->cWalkHits * (KU64)100 / K_MAX(g_pFsCache->cLookups, 1),
    489489            cMisses, cMisses * (KU64)100 / K_MAX(g_pFsCache->cLookups, 1));
    490     fprintf(pOut, "#  %u child searches, %u (%" KU64_PRI "%%) hash hits\n",
     490    fprintf(pOut, "#  %" KSIZE_PRI_U " child searches, %" KSIZE_PRI_U " (%" KU64_PRI "%%) hash hits\n",
    491491            g_pFsCache->cChildSearches,
    492492            g_pFsCache->cChildHashHits, g_pFsCache->cChildHashHits * (KU64)100 / K_MAX(g_pFsCache->cChildSearches, 1));
Note: See TracChangeset for help on using the changeset viewer.