| 328 | } |
| 329 | |
| 330 | void Patch_DumpOsQueueInfo() |
| 331 | { |
| 332 | #ifdef DAED_OS_MESSAGE_QUEUES |
| 333 | u32 dwQueue; |
| 334 | |
| 335 | |
| 336 | // List queue info: |
| 337 | u32 i; |
| 338 | u32 dwEmptyQ; |
| 339 | u32 dwFullQ; |
| 340 | u32 dwValidCount; |
| 341 | u32 dwFirst; |
| 342 | u32 dwMsgCount; |
| 343 | u32 dwMsg; |
| 344 | |
| 345 | |
| 346 | DBGConsole_Msg(0, "There are %d Queues", g_MessageQueues.size()); |
| 347 | DBGConsole_Msg(0, "Queues: Empty Full Valid First MsgCount Msg"); |
| 348 | //DBGConsole_Msg(0, "01234567, 01234567, 01234567, xxxx, xxxx, xxxx, 01234567", |
| 349 | for (i = 0; i < g_MessageQueues.size(); i++) |
| 350 | { |
| 351 | char fullqueue_buffer[30]; |
| 352 | char emptyqueue_buffer[30]; |
| 353 | char type_buffer[60] = ""; |
| 354 | |
| 355 | dwQueue = g_MessageQueues[i]; |
| 356 | |
| 357 | COSMesgQueue q(dwQueue); |
| 358 | |
| 359 | dwEmptyQ = q.GetEmptyQueue(); |
| 360 | dwFullQ = q.GetFullQueue(); |
| 361 | dwValidCount = q.GetValidCount(); |
| 362 | dwFirst = q.GetFirst(); |
| 363 | dwMsgCount = q.GetMsgCount(); |
| 364 | dwMsg = q.GetMesgArray(); |
| 365 | |
| 366 | if ((s32)dwFirst < 0 || |
| 367 | (s32)dwValidCount < 0 || |
| 368 | (s32)dwMsgCount < 0) |
| 369 | { |
| 370 | continue; |
| 371 | } |
| 372 | |
| 373 | if (dwFullQ == VAR_ADDRESS(osnullptrMsgQueue)) |
| 374 | sprintf(fullqueue_buffer, " -"); |
| 375 | else |
| 376 | sprintf(fullqueue_buffer, "%08x", dwFullQ); |
| 377 | |
| 378 | if (dwEmptyQ == VAR_ADDRESS(osnullptrMsgQueue)) |
| 379 | sprintf(emptyqueue_buffer, " -"); |
| 380 | else |
| 381 | sprintf(emptyqueue_buffer, "%08x", dwEmptyQ); |
| 382 | |
| 383 | if (dwQueue == VAR_ADDRESS(osSiAccessQueue)) |
| 384 | { |
| 385 | sprintf(type_buffer, "<- Si Access"); |
| 386 | |
| 387 | } |
nothing calls this directly
no test coverage detected