summaryrefslogtreecommitdiffstats
path: root/src/include/compiler.h
diff options
context:
space:
mode:
authorMichael Brown2012-03-06 23:02:15 +0100
committerMichael Brown2012-03-06 23:02:15 +0100
commit18ff2ad53e2e6fdaca071f0b5b02b8f9666024c1 (patch)
tree9ad56d94648162dbb7df29369d861f736b285dd9 /src/include/compiler.h
parent[test] Add NIST self-tests for AES128 and AES256 in CBC mode (diff)
downloadipxe-18ff2ad53e2e6fdaca071f0b5b02b8f9666024c1.tar.gz
ipxe-18ff2ad53e2e6fdaca071f0b5b02b8f9666024c1.tar.xz
ipxe-18ff2ad53e2e6fdaca071f0b5b02b8f9666024c1.zip
[debug] Ensure debug address and colourisation fields are fully initialised
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/compiler.h')
-rw-r--r--src/include/compiler.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/compiler.h b/src/include/compiler.h
index feea5167..9a751d3b 100644
--- a/src/include/compiler.h
+++ b/src/include/compiler.h
@@ -339,6 +339,7 @@ int __debug_disable;
unsigned long ul; \
typeof ( dispaddr ) raw; \
} da; \
+ da.ul = 0; \
da.raw = dispaddr; \
dbg_hex_dump_da ( da.ul, data, len ); \
} \
@@ -370,6 +371,7 @@ int __debug_disable;
unsigned long ul; \
typeof ( dispaddr ) raw; \
} da; \
+ da.ul = 0; \
da.raw = dispaddr; \
dbg_md5_da ( da.ul, data, len ); \
} \
@@ -421,6 +423,7 @@ int __debug_disable;
unsigned long ul; \
typeof ( id ) raw; \
} dbg_stream; \
+ dbg_stream.ul = 0; \
dbg_stream.raw = id; \
dbg_autocolourise ( dbg_stream.ul ); \
} \