]> xenbits.xensource.com Git - xen.git/commitdiff
x86/hvm: Fix non-debug build folling c/s 0745f665a5
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 21 Nov 2016 15:30:25 +0000 (15:30 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 21 Nov 2016 17:17:51 +0000 (17:17 +0000)
The variable is named inst_len, not insn_len.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/hvm/svm/emulate.c

index ca670bf1b4b347dc2a1d0da2ae3e9e4c9f4a3c31..a5545ea06191c16fbdba60f309ae36c24b76abba 100644 (file)
@@ -98,8 +98,8 @@ int __get_instruction_length_from_list(struct vcpu *v,
      */
 #ifdef NDEBUG
     if ( (inst_len = svm_nextrip_insn_length(v)) > MAX_INST_LEN )
-        gprintk(XENLOG_WARNING, "NRip reported insn_len %lu\n", insn_len);
-    else if ( insn_len != 0 )
+        gprintk(XENLOG_WARNING, "NRip reported inst_len %lu\n", inst_len);
+    else if ( inst_len != 0 )
         return inst_len;
 
     if ( vmcb->exitcode == VMEXIT_IOIO )