]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
oracleasm: Fix trace output for warn_asm_ioc and check_asm_ioc
authorMartin K. Petersen <martin.petersen@oracle.com>
Wed, 27 May 2015 01:27:47 +0000 (21:27 -0400)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Mon, 29 Jun 2015 15:34:54 +0000 (08:34 -0700)
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 <martin.petersen@oracle.com>
drivers/block/oracleasm/trace.h

index 67771f70bec5c2935abbf49d935cf4569890cb41..619e0aade2461d28a415fd5c3a1ec79f024f806b 100644 (file)
@@ -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;
        ),