VirtualBox

Ignore:
Timestamp:
Nov 27, 2023 6:48:07 PM (15 months ago)
Author:
vboxsync
Message:

libs/xpcom: Replace remaining APIs from prprf.h with IPRT equivalents, bugref:10545

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/xpcom/tests/TestAtoms.cpp

    r41166 r102345  
    3838#include "nsString.h"
    3939#include "nsReadableUtils.h"
    40 #include "prprf.h"
    4140#include "prtime.h"
    4241#include <stdio.h>
     42
     43#include <iprt/string.h>
    4344
    4445extern "C" int _CrtSetDbgFlag(int);
     
    114115  LL_SUB(dtor, end3, end2);
    115116  char buf[500];
    116   PR_snprintf(buf, sizeof(buf), "making %d ident strings took %lldms",
    117               count, creates);
     117  RTStrPrintf2(buf, sizeof(buf), "making %d ident strings took %lldms",
     118               count, creates);
    118119  puts(buf);
    119   PR_snprintf(buf, sizeof(buf), "%d new idents took %lldms",
    120               count, finds);
     120  RTStrPrintf2(buf, sizeof(buf), "%d new idents took %lldms",
     121               count, finds);
    121122  puts(buf);
    122   PR_snprintf(buf, sizeof(buf), "%d ident lookups took %lldms",
    123               count, lookups);
     123  RTStrPrintf2(buf, sizeof(buf), "%d ident lookups took %lldms",
     124               count, lookups);
    124125  puts(buf);
    125   PR_snprintf(buf, sizeof(buf), "dtor took %lldusec", dtor);
     126  RTStrPrintf2(buf, sizeof(buf), "dtor took %lldusec", dtor);
    126127  puts(buf);
    127128
Note: See TracChangeset for help on using the changeset viewer.

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