Xentrace: Remove assertions to avoid system crashes on debug build xen. Signed-off-by: Yosuke Iwamatsu diff -r 2d761ca771fb xen/common/trace.c --- a/xen/common/trace.c Thu Oct 04 17:58:16 2007 +0100 +++ b/xen/common/trace.c Fri Oct 05 10:28:33 2007 +0900 @@ -435,12 +435,10 @@ void __trace_var(u32 event, int cycles, { bytes_to_wrap -= LOST_REC_SIZE; if ( bytes_to_wrap == 0 ) - bytes_to_wrap == data_size; + bytes_to_wrap = data_size; } total_size += LOST_REC_SIZE; } - - ASSERT(bytes_to_wrap == calc_bytes_to_wrap(buf)); if ( rec_size > bytes_to_wrap ) { @@ -484,8 +482,6 @@ void __trace_var(u32 event, int cycles, insert_lost_records(buf); } - ASSERT(bytes_to_wrap == calc_bytes_to_wrap(buf)); - if ( rec_size > bytes_to_wrap ) insert_wrap_record(buf, rec_size);