Changeset 66300 in vbox for trunk/src/VBox/Runtime/common/string/strformatrt.cpp
- Timestamp:
- Mar 28, 2017 12:48:56 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/string/strformatrt.cpp
r66299 r66300 476 476 * For now don't show the address. 477 477 */ 478 cch = 0;479 478 if (fFlags & RTSTR_F_OBFUSCATE_PTR) 480 479 { 480 # if R0_ARCH_BITS == 64 481 static const char s_szObfuscated[] = "0xXXXXXXXX"; 482 # else 483 static const char s_szObfuscated[] = "0xXXXXXXXXXXXXXXXX"; 484 # endif 481 485 if (fFlags & RTSTR_F_SPECIAL) 482 cch += pfnOutput(pvArgOutput, RT_STR_TUPLE("0x")); 483 484 # if R0_ARCH_BITS == 32 485 cch += pfnOutput(pvArgOutput, RT_STR_TUPLE("XXXXXXXX")); 486 # elif R0_ARCH_BITS == 64 487 cch += pfnOutput(pvArgOutput, RT_STR_TUPLE("XXXXXXXXXXXXXXXX")); 488 # else 489 # error implement me! 490 # endif 491 return cch; 486 return pfnOutput(pvArgOutput, s_szObfuscated, sizeof(s_szObfuscated) - 1); 487 return pfnOutput(pvArgOutput, &s_szObfuscated[2], sizeof(s_szObfuscated) - 1 - 2); 492 488 } 493 489 #endif
Note:
See TracChangeset
for help on using the changeset viewer.