Blame 0004-OvmfPkg-increase-max-debug-message-length-to-512.patch
|
|
740797 |
From 4f43c23c001910836cbf76644daad38ec7ceb240 Mon Sep 17 00:00:00 2001
|
|
Gerd Hoffmann |
b0c3af |
From: Laszlo Ersek <lersek@redhat.com>
|
|
Gerd Hoffmann |
b0c3af |
Date: Thu, 20 Feb 2014 22:54:45 +0100
|
|
|
294170 |
Subject: [PATCH] OvmfPkg: increase max debug message length to 512
|
|
Gerd Hoffmann |
b0c3af |
|
|
Paolo Bonzini |
7ae6f1 |
Upstream prefers short debug messages (sometimes even limited to 80
|
|
Paolo Bonzini |
7ae6f1 |
characters), but any line length under 512 characters is just unsuitable
|
|
Paolo Bonzini |
7ae6f1 |
for effective debugging. (For example, config strings in HII routing,
|
|
Paolo Bonzini |
7ae6f1 |
logged by the platform driver "OvmfPkg/PlatformDxe" on DEBUG_VERBOSE
|
|
Paolo Bonzini |
7ae6f1 |
level, can be several hundred characters long.) 512 is an empirically good
|
|
Paolo Bonzini |
7ae6f1 |
value.
|
|
Paolo Bonzini |
7ae6f1 |
|
|
Paolo Bonzini |
7ae6f1 |
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
|
|
Gerd Hoffmann |
b0c3af |
---
|
|
Gerd Hoffmann |
b0c3af |
OvmfPkg/Library/PlatformDebugLibIoPort/DebugLib.c | 2 +-
|
|
Gerd Hoffmann |
b0c3af |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Gerd Hoffmann |
b0c3af |
|
|
Gerd Hoffmann |
b0c3af |
diff --git a/OvmfPkg/Library/PlatformDebugLibIoPort/DebugLib.c b/OvmfPkg/Library/PlatformDebugLibIoPort/DebugLib.c
|
|
|
740797 |
index 3dfa3126c3..9451c50c70 100644
|
|
Gerd Hoffmann |
b0c3af |
--- a/OvmfPkg/Library/PlatformDebugLibIoPort/DebugLib.c
|
|
Gerd Hoffmann |
b0c3af |
+++ b/OvmfPkg/Library/PlatformDebugLibIoPort/DebugLib.c
|
|
|
740797 |
@@ -21,7 +21,7 @@
|
|
Gerd Hoffmann |
b0c3af |
//
|
|
Gerd Hoffmann |
b0c3af |
// Define the maximum debug and assert message length that this library supports
|
|
Gerd Hoffmann |
b0c3af |
//
|
|
Gerd Hoffmann |
b0c3af |
-#define MAX_DEBUG_MESSAGE_LENGTH 0x100
|
|
Paolo Bonzini |
2e34e0 |
+#define MAX_DEBUG_MESSAGE_LENGTH 0x200
|
|
Gerd Hoffmann |
b0c3af |
|
|
|
740797 |
//
|
|
|
740797 |
// VA_LIST can not initialize to NULL for all compiler, so we use this to
|