Browse Source

[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 years ago
parent
commit
18ff2ad53e
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/include/compiler.h

+ 3
- 0
src/include/compiler.h View File

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

Loading…
Cancel
Save