Pārlūkot izejas kodu

[debug] Ensure debug address and colourisation fields are fully initialised

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 12 gadus atpakaļ
vecāks
revīzija
18ff2ad53e
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3
    0
      src/include/compiler.h

+ 3
- 0
src/include/compiler.h Parādīt failu

@@ -339,6 +339,7 @@ int __debug_disable;
339 339
 				unsigned long ul;		\
340 340
 				typeof ( dispaddr ) raw;	\
341 341
 			} da;					\
342
+			da.ul = 0;				\
342 343
 			da.raw = dispaddr;			\
343 344
 			dbg_hex_dump_da ( da.ul, data, len );	\
344 345
 		}						\
@@ -370,6 +371,7 @@ int __debug_disable;
370 371
 				unsigned long ul;		\
371 372
 				typeof ( dispaddr ) raw;	\
372 373
 			} da;					\
374
+			da.ul = 0;				\
373 375
 			da.raw = dispaddr;			\
374 376
 			dbg_md5_da ( da.ul, data, len );	\
375 377
 		}						\
@@ -421,6 +423,7 @@ int __debug_disable;
421 423
 				unsigned long ul;		\
422 424
 				typeof ( id ) raw;		\
423 425
 			} dbg_stream;				\
426
+			dbg_stream.ul = 0;			\
424 427
 			dbg_stream.raw = id;			\
425 428
 			dbg_autocolourise ( dbg_stream.ul );	\
426 429
 		}						\

Notiek ielāde…
Atcelt
Saglabāt