VirtualBox

Changeset 24958 in vbox


Ignore:
Timestamp:
Nov 25, 2009 3:02:04 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
55256
Message:

r3/alloc.cpp: Use %#zx instead of %d on sizes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/VBox/Runtime/r3/alloc.cpp

    r11019 r24958  
    102102    AssertMsg(cb, ("Allocating ZERO bytes is really not a good idea! Good luck with the next assertion!\n"));
    103103    void *pv = malloc(cb);
    104     AssertMsg(pv, ("malloc(%d) failed!!!\n", cb));
     104    AssertMsg(pv, ("malloc(%#zx) failed!!!\n", cb));
    105105#ifdef RT_OS_OS2 /* temporary workaround until libc062. */
    106106    AssertMsg(   cb < 32
     
    136136
    137137    void *pv = calloc(1, cb);
    138     AssertMsg(pv, ("calloc(1,%d) failed!!!\n", cb));
     138    AssertMsg(pv, ("calloc(1,%#zx) failed!!!\n", cb));
    139139#ifdef RT_OS_OS2 /* temporary workaround until libc062. */
    140140    AssertMsg(   cb < 32
     
    165165
    166166    void *pv = realloc(pvOld, cbNew);
    167     AssertMsg(pv && cbNew, ("realloc(%p, %d) failed!!!\n", pvOld, cbNew));
     167    AssertMsg(pv && cbNew, ("realloc(%p, %#zx) failed!!!\n", pvOld, cbNew));
    168168#ifdef RT_OS_OS2 /* temporary workaround until libc062. */
    169169    AssertMsg(   cbNew < 32
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