From: Martin K. Petersen Date: Wed, 27 May 2015 01:27:47 +0000 (-0400) Subject: oracleasm: Fix trace output for warn_asm_ioc and check_asm_ioc X-Git-Tag: v4.1.12-92~323^2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=4839d52fdd2ab83704da85fbd67e1e7de415d5b4;p=users%2Fjedix%2Flinux-maple.git oracleasm: Fix trace output for warn_asm_ioc and check_asm_ioc The trace logic transposed the warn_asm_ioc and check_asm_ioc values. We would treat the former as a flag and the latter as an integer. Fix this so we print warning error codes and integrity buffer presence correctly. Signed-off-by: Martin K. Petersen --- diff --git a/drivers/block/oracleasm/trace.h b/drivers/block/oracleasm/trace.h index 67771f70bec5..619e0aade246 100644 --- a/drivers/block/oracleasm/trace.h +++ b/drivers/block/oracleasm/trace.h @@ -152,8 +152,8 @@ TRACE_EVENT(ioc, __entry->count = ioc->rcount_asm_ioc; __entry->status = ioc->status_asm_ioc; __entry->error = ioc->error_asm_ioc; - __entry->warn = ioc->warn_asm_ioc ? true : false; - __entry->integrity = ioc->check_asm_ioc; + __entry->warn = ioc->warn_asm_ioc; + __entry->integrity = ioc->check_asm_ioc ? true : false; __entry->ret = ret; ),