VirtualBox

忽略:
時間撮記:
2009-11-25 下午03:02:04 (15 年 以前)
作者:
vboxsync
訊息:

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

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • 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
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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