]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[debug] Ensure debug address and colourisation fields are fully initialised
authorMichael Brown <mcb30@ipxe.org>
Tue, 6 Mar 2012 22:02:15 +0000 (22:02 +0000)
committerMichael Brown <mcb30@ipxe.org>
Tue, 6 Mar 2012 22:02:15 +0000 (22:02 +0000)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/include/compiler.h

index feea5167ec04113e76ba0cd38282ff416fd84b01..9a751d3bb8f8327fe0a09bc82f392b52ffadb6dc 100644 (file)
@@ -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 );    \
                }                                               \