Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2db1724

Browse files
tsunghowuspbrogan
authored andcommitted
MsGraphicsPkg: Fix incorrect parameters in DEBUG macro. (microsoft#9)
Preprocessor string concatenation doesn't work for all toolchains. DEBUG statements must be written to account for all supported toolchains. Update the DEBUG statements to use %a and the literals as arguments.
1 parentf74b00d commit2db1724

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎MsGraphicsPkg/DisplayEngineDxe/FormDisplay.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2535,7 +2535,7 @@ UiDisplayMenu (IN FORM_DISPLAY_ENGINE_FORM *FormData) {
25352535
DebugDumpMemory(DEBUG_ERROR,((CHAR8*)ReturnValue)-0x18,Statement->CurrentValue.BufferLen+0x20,DEBUG_DM_PRINT_ASCII);
25362536
#endif
25372537
if (CompareMem (ReturnValue,ValueArray,Statement->CurrentValue.BufferLen)==0) {
2538-
DEBUG ((DEBUG_ERROR,__FUNCTION__" no change detected\n"));
2538+
DEBUG ((DEBUG_ERROR,"%a no change detected\n",__FUNCTION__));
25392539
// ** Error condition ***
25402540
FreePool (ReturnValue);
25412541
}else {
@@ -2930,7 +2930,7 @@ FormDisplayOnReadyToBoot (
29302930
INVOID*Context
29312931
) {
29322932

2933-
DEBUG ((DEBUG_INFO,__FUNCTION__"\n"));
2933+
DEBUG ((DEBUG_INFO,"%a\n",__FUNCTION__));
29342934

29352935
if (NULL!=mPrivateData.PreviousCanvas) {
29362936
delete_Canvas (mPrivateData.PreviousCanvas);

‎MsGraphicsPkg/SimpleWindowManagerDxe/WindowManager.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ WINMGR_CLIENT * FilterPointerState (IN MS_SWM_ABSOLUTE_POINTER_STATE *PointerSta
590590
// * If it doesn't and there's an active default client, it's theirs.
591591
// * If none of the above, we give it to the current caller.
592592
//
593-
DEBUG((DEBUG_INFO,__FUNCTION__" - X=%5d, Y=%5d, Buttons=%x\n",PointerState->CurrentX,PointerState->CurrentY,PointerState->ActiveButtons));
593+
DEBUG((DEBUG_INFO,"%a - X=%5d, Y=%5d, Buttons=%x\n",__FUNCTION__,PointerState->CurrentX,PointerState->CurrentY,PointerState->ActiveButtons));
594594

595595
pList=mSWM.Clients;
596596
while (pList!=NULL)
@@ -618,7 +618,7 @@ WINMGR_CLIENT * FilterPointerState (IN MS_SWM_ABSOLUTE_POINTER_STATE *PointerSta
618618
pList=pList->pNext;
619619
}
620620

621-
DEBUG((DEBUG_ERROR,__FUNCTION__" No WINMGR_CLIENT found for PointerState\n"));
621+
DEBUG((DEBUG_ERROR,"%a No WINMGR_CLIENT found for PointerState\n",__FUNCTION__));
622622

623623
ASSERT(FALSE);
624624

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp