diff options
author | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-10-27 10:13:00 +0000 |
---|---|---|
committer | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-10-27 10:13:00 +0000 |
commit | 0e549d5be531a840503445d38b4dad2315ef3413 (patch) | |
tree | c745d6a93a8480851c94265c6f402956c872301d /MdeModulePkg/Universal/Network/SnpDxe | |
parent | 13c310654c058ae70f8e95b9a47f03fc9d42c7da (diff) | |
download | edk2-platforms-0e549d5be531a840503445d38b4dad2315ef3413.tar.xz |
Make use of correct format String:
1) UINT64 should use %lx
2) POINTER type should use %p
3) EFI_STATUS should use %r
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6253 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/Network/SnpDxe')
-rw-r--r-- | MdeModulePkg/Universal/Network/SnpDxe/Snp.c | 10 | ||||
-rw-r--r-- | MdeModulePkg/Universal/Network/SnpDxe/Transmit.c | 6 |
2 files changed, 8 insertions, 8 deletions
diff --git a/MdeModulePkg/Universal/Network/SnpDxe/Snp.c b/MdeModulePkg/Universal/Network/SnpDxe/Snp.c index 31b5022bd0..e01a135708 100644 --- a/MdeModulePkg/Universal/Network/SnpDxe/Snp.c +++ b/MdeModulePkg/Universal/Network/SnpDxe/Snp.c @@ -221,7 +221,7 @@ del_v2p ( FreePool (v);
if (Status) {
- DEBUG ((EFI_D_ERROR, "Unmap failed with status = %x\n", Status));
+ DEBUG ((EFI_D_ERROR, "Unmap failed with status = %r\n", Status));
}
return Status;
}
@@ -233,7 +233,7 @@ del_v2p ( FreePool (t);
if (Status) {
- DEBUG ((EFI_D_ERROR, "Unmap failed with status = %x\n", Status));
+ DEBUG ((EFI_D_ERROR, "Unmap failed with status = %r\n", Status));
}
return Status;
}
@@ -353,12 +353,12 @@ SimpleNetworkDriverSupported ( if (EFI_ERROR (Status)) {
if (Status == EFI_ALREADY_STARTED) {
- DEBUG ((EFI_D_INFO, "Support(): Already Started. on handle %x\n", Controller));
+ DEBUG ((EFI_D_INFO, "Support(): Already Started. on handle %p\n", Controller));
}
return Status;
}
- DEBUG ((EFI_D_INFO, "Support(): UNDI3.1 found on handle %x\n", Controller));
+ DEBUG ((EFI_D_INFO, "Support(): UNDI3.1 found on handle %p\n", Controller));
//
// check the version, we don't want to connect to the undi16
@@ -422,7 +422,7 @@ SimpleNetworkDriverSupported ( }
Status = EFI_SUCCESS;
- DEBUG ((EFI_D_INFO, "Support(): supported on %x\n", Controller));
+ DEBUG ((EFI_D_INFO, "Support(): supported on %p\n", Controller));
Done:
gBS->CloseProtocol (
diff --git a/MdeModulePkg/Universal/Network/SnpDxe/Transmit.c b/MdeModulePkg/Universal/Network/SnpDxe/Transmit.c index 8ee0cad566..1567e4b243 100644 --- a/MdeModulePkg/Universal/Network/SnpDxe/Transmit.c +++ b/MdeModulePkg/Universal/Network/SnpDxe/Transmit.c @@ -188,9 +188,9 @@ pxe_transmit ( //
DEBUG ((EFI_D_NET, "\nsnp->undi.transmit() "));
DEBUG ((EFI_D_NET, "\nsnp->cdb.OpCode == %x", snp->cdb.OpCode));
- DEBUG ((EFI_D_NET, "\nsnp->cdb.CPBaddr == %X", snp->cdb.CPBaddr));
- DEBUG ((EFI_D_NET, "\nsnp->cdb.DBaddr == %X", snp->cdb.DBaddr));
- DEBUG ((EFI_D_NET, "\ncpb->FrameAddr == %X\n", cpb->FrameAddr));
+ DEBUG ((EFI_D_NET, "\nsnp->cdb.CPBaddr == %LX", snp->cdb.CPBaddr));
+ DEBUG ((EFI_D_NET, "\nsnp->cdb.DBaddr == %LX", snp->cdb.DBaddr));
+ DEBUG ((EFI_D_NET, "\ncpb->FrameAddr == %LX\n", cpb->FrameAddr));
(*snp->issue_undi32_command) ((UINT64) (UINTN) &snp->cdb);
|