* @brief Implementation of print function * * @param Tag * @param ImmediateMessagePassing * @param Value * @return VOID */
| 596 | * @return VOID |
| 597 | */ |
| 598 | VOID |
| 599 | ScriptEngineFunctionPrint(UINT64 Tag, BOOLEAN ImmediateMessagePassing, UINT64 Value) |
| 600 | { |
| 601 | #ifdef SCRIPT_ENGINE_USER_MODE |
| 602 | ShowMessages("%llx\n", Value); |
| 603 | #endif // SCRIPT_ENGINE_USER_MODE |
| 604 | |
| 605 | #ifdef SCRIPT_ENGINE_KERNEL_MODE |
| 606 | |
| 607 | // |
| 608 | // Prepare a buffer to bypass allocating a huge stack space for logging |
| 609 | // |
| 610 | char TempBuffer[20] = {0}; |
| 611 | UINT32 TempBufferLen = sprintf(TempBuffer, "%llx\n", Value); |
| 612 | |
| 613 | LogSimpleWithTag((UINT32)Tag, ImmediateMessagePassing, TempBuffer, TempBufferLen + 1); |
| 614 | |
| 615 | #endif // SCRIPT_ENGINE_KERNEL_MODE |
| 616 | } |
| 617 | |
| 618 | /** |
| 619 | * @brief Implementation of test_statement function |
no test coverage detected