Fix format conversion specifiers for pointers
Use %p instead of %x + cast to int. Reported by GCC.
This commit is contained in:
parent
e7564e9f9d
commit
49d9cf6d7f
2 changed files with 4 additions and 4 deletions
|
@ -1645,7 +1645,7 @@ static void AlienNearState_Retreat(STRATEGYBLOCK *sbPtr)
|
|||
|
||||
if (targetModule) {
|
||||
//textprint("Target module is %s\n",targetModule->name);
|
||||
textprint("Target AI module found, %x.\n",(int)targetModule);
|
||||
textprint("Target AI module found, %p.\n", targetModule);
|
||||
} else {
|
||||
textprint("Target module is NULL!\n");
|
||||
}
|
||||
|
@ -1829,7 +1829,7 @@ static void AlienNearState_Hunt(STRATEGYBLOCK *sbPtr)
|
|||
|
||||
if (targetModule) {
|
||||
//textprint("Target module is %s\n",targetModule->name);
|
||||
textprint("Target AI module for hunt found, %x.\n",(int)targetModule);
|
||||
textprint("Target AI module for hunt found, %p.\n", targetModule);
|
||||
} else {
|
||||
textprint("Target module is NULL!\n");
|
||||
}
|
||||
|
|
|
@ -234,7 +234,7 @@ void DoObjectVisibility(STRATEGYBLOCK *sbPtr)
|
|||
module. However, we will do a paranoia check for a null containingModule... */
|
||||
if(!sbPtr->containingModule)
|
||||
{
|
||||
textprint("Calling Far EmergencyRelocateObject, On object %x, type %d!\n",(int)sbPtr, sbPtr->I_SBtype);
|
||||
textprint("Calling Far EmergencyRelocateObject, On object %p, type %d!\n", sbPtr, sbPtr->I_SBtype);
|
||||
IdentifyObject(sbPtr);
|
||||
if(!(EmergencyRelocateObject(sbPtr))) {
|
||||
textprint("Relocate failed!\n");
|
||||
|
@ -430,7 +430,7 @@ void DoObjectVisibility(STRATEGYBLOCK *sbPtr)
|
|||
if(!(newModule))
|
||||
{
|
||||
/* attempt to relocate object */
|
||||
textprint("Calling Near EmergencyRelocateObject, On object %x, type %d!\n",(int)sbPtr, sbPtr->I_SBtype);
|
||||
textprint("Calling Near EmergencyRelocateObject, On object %p, type %d!\n", sbPtr, sbPtr->I_SBtype);
|
||||
IdentifyObject(sbPtr);
|
||||
if(!(EmergencyRelocateObject(sbPtr))) {
|
||||
textprint("Relocate failed!\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue