Skip to content

Commit 8169ced

Browse files
DasBlubNoFantasy
authored andcommitted
[1541] Make gcc happy, and use UI64FMTD in log messages where argument is uint64 and SIZEFMTD for size(). Patch by DasBlub
Make gcc happy, and use UI64FMTD in log messages where argument is uint64 and SIZEFMTD for size(). Patch by DasBlub git-svn-id: https://scriptdev2.svn.sourceforge.net/svnroot/scriptdev2@1541 5f9c896b-1e26-0410-94da-f77f675e2462
1 parent fb74332 commit 8169ced

7 files changed

Lines changed: 10 additions & 10 deletions

File tree

base/escort_ai.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ void npc_escortAI::Start(bool bIsActiveAttacker, bool bRun, uint64 uiPlayerGUID,
462462
//disable npcflags
463463
m_creature->SetUInt32Value(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_NONE);
464464

465-
debug_log("SD2: EscortAI started with %u waypoints. ActiveAttacker = %d, Run = %d, PlayerGUID = %u", WaypointList.size(), m_bIsActiveAttacker, m_bIsRunning, m_uiPlayerGUID);
465+
debug_log("SD2: EscortAI started with " SIZEFMTD " waypoints. ActiveAttacker = %d, Run = %d, PlayerGUID = " UI64FMTD, WaypointList.size(), m_bIsActiveAttacker, m_bIsRunning, m_uiPlayerGUID);
466466

467467
CurrentWP = WaypointList.begin();
468468

base/follower_ai.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ void FollowerAI::StartFollow(Player* pLeader, uint32 uiFactionForFollower, const
304304

305305
m_creature->GetMotionMaster()->MoveFollow(pLeader, PET_FOLLOW_DIST, PET_FOLLOW_ANGLE);
306306

307-
debug_log("SD2: FollowerAI start follow %s (GUID %u)", pLeader->GetName(), m_uiLeaderGUID);
307+
debug_log("SD2: FollowerAI start follow %s (GUID " UI64FMTD ")", pLeader->GetName(), m_uiLeaderGUID);
308308
}
309309

310310
Player* FollowerAI::GetLeaderForFollower()

include/sc_creature.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ void ScriptedAI::DoTeleportPlayer(Unit* pUnit, float fX, float fY, float fZ, flo
441441
if (!pUnit || pUnit->GetTypeId() != TYPEID_PLAYER)
442442
{
443443
if (pUnit)
444-
error_log("SD2: Creature %u (Entry: %u) Tried to teleport non-player unit (Type: %u GUID: %u) to x: %f y:%f z: %f o: %f. Aborted.", m_creature->GetGUID(), m_creature->GetEntry(), pUnit->GetTypeId(), pUnit->GetGUID(), fX, fY, fZ, fO);
444+
error_log("SD2: Creature " UI64FMTD " (Entry: %u) Tried to teleport non-player unit (Type: %u GUID: " UI64FMTD ") to x: %f y:%f z: %f o: %f. Aborted.", m_creature->GetGUID(), m_creature->GetEntry(), pUnit->GetTypeId(), pUnit->GetGUID(), fX, fY, fZ, fO);
445445

446446
return;
447447
}

scripts/eastern_kingdoms/karazhan/karazhan.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -362,19 +362,19 @@ bool GossipSelect_npc_barnes(Player* pPlayer, Creature* pCreature, uint32 uiSend
362362
pPlayer->CLOSE_GOSSIP_MENU();
363363
if (pBarnesAI)
364364
pBarnesAI->m_uiEventId = EVENT_OZ;
365-
outstring_log("SD2: pPlayer (GUID %i) manually set Opera event to EVENT_OZ",pPlayer->GetGUID());
365+
outstring_log("SD2: pPlayer (GUID " UI64FMTD ") manually set Opera event to EVENT_OZ", pPlayer->GetGUID());
366366
break;
367367
case GOSSIP_ACTION_INFO_DEF+4:
368368
pPlayer->CLOSE_GOSSIP_MENU();
369369
if (pBarnesAI)
370370
pBarnesAI->m_uiEventId = EVENT_HOOD;
371-
outstring_log("SD2: pPlayer (GUID %i) manually set Opera event to EVENT_HOOD",pPlayer->GetGUID());
371+
outstring_log("SD2: pPlayer (GUID " UI64FMTD ") manually set Opera event to EVENT_HOOD", pPlayer->GetGUID());
372372
break;
373373
case GOSSIP_ACTION_INFO_DEF+5:
374374
pPlayer->CLOSE_GOSSIP_MENU();
375375
if (pBarnesAI)
376376
pBarnesAI->m_uiEventId = EVENT_RAJ;
377-
outstring_log("SD2: pPlayer (GUID %i) manually set Opera event to EVENT_RAJ",pPlayer->GetGUID());
377+
outstring_log("SD2: pPlayer (GUID " UI64FMTD ") manually set Opera event to EVENT_RAJ", pPlayer->GetGUID());
378378
break;
379379
}
380380

scripts/eastern_kingdoms/magisters_terrace/boss_selin_fireheart.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ struct MANGOS_DLL_DECL boss_selin_fireheartAI : public ScriptedAI
6464
for(uint8 i = 0; i < size; ++i)
6565
{
6666
uint64 guid = m_pInstance->GetData64(DATA_FEL_CRYSTAL);
67-
debug_log("SD2: Selin: Adding Fel Crystal %u to list", guid);
67+
debug_log("SD2: Selin: Adding Fel Crystal " UI64FMTD " to list", guid);
6868
Crystals.push_back(guid);
6969
}
7070
}

scripts/outland/black_temple/boss_shade_of_akama.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ struct MANGOS_DLL_DECL boss_shade_of_akamaAI : public ScriptedAI
193193
if (uiGuid)
194194
{
195195
if (m_lSorcerersGUIDList.empty())
196-
error_log("SD2: boss_shade_of_akamaAI attempt to remove guid %u from Sorcerers list but list is already empty", uiGuid);
196+
error_log("SD2: boss_shade_of_akamaAI attempt to remove guid " UI64FMTD " from Sorcerers list but list is already empty", uiGuid);
197197
else
198198
m_lSorcerersGUIDList.remove(uiGuid);
199199
}
@@ -284,7 +284,7 @@ struct MANGOS_DLL_DECL boss_shade_of_akamaAI : public ScriptedAI
284284
for(std::list<Creature*>::iterator itr = lChannelerList.begin(); itr != lChannelerList.end(); ++itr)
285285
{
286286
m_lChannelersGUIDList.push_back((*itr)->GetGUID());
287-
debug_log("SD2: boss_shade_of_akamaAI found channeler %u. Adding to list", (*itr)->GetGUID());
287+
debug_log("SD2: boss_shade_of_akamaAI found channeler " UI64FMTD ". Adding to list", (*itr)->GetGUID());
288288

289289
(*itr)->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
290290
}

system/system.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ void SystemMgr::LoadScriptWaypoints()
189189
delete pResult;
190190
}
191191

192-
outstring_log("SD2: Loading Script Waypoints for %u creature(s)...", uiCreatureCount);
192+
outstring_log("SD2: Loading Script Waypoints for " UI64FMTD " creature(s)...", uiCreatureCount);
193193

194194
pResult = SD2Database.PQuery("SELECT entry, pointid, location_x, location_y, location_z, waittime FROM script_waypoint ORDER BY pointid");
195195

0 commit comments

Comments
 (0)