Patchwork [13/13] s390x: Fix debugging for unknown sigp order codes

login
register
mail settings
Submitter Alexander Graf
Date May 4, 2011, 12:09 p.m.
Message ID <1304510982-30810-14-git-send-email-agraf@suse.de>
Download mbox | patch
Permalink /patch/94024/
State New
Headers show

Comments

Alexander Graf - May 4, 2011, 12:09 p.m.
From: Christian Borntraeger <borntraeger@de.ibm.com>

On unknown sigp order codes we print a debug message. This patch
fixes the output, since we want to see the order_code and not
the register numbers.
Patch applies on agraf tree.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
---
 target-s390x/kvm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/target-s390x/kvm.c b/target-s390x/kvm.c
index b68749b..bd2eca4 100644
--- a/target-s390x/kvm.c
+++ b/target-s390x/kvm.c
@@ -377,7 +377,7 @@  static int handle_sigp(CPUState *env, struct kvm_run *run, uint8_t ipa1)
             r = s390_cpu_initial_reset(target_env);
             break;
         default:
-            fprintf(stderr, "KVM: unknown SIGP: 0x%x\n", ipa1);
+            fprintf(stderr, "KVM: unknown SIGP: 0x%x\n", order_code);
             break;
     }