From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:47290) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UULyh-0005UD-3F for qemu-devel@nongnu.org; Mon, 22 Apr 2013 15:00:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UULye-0002Ha-Mw for qemu-devel@nongnu.org; Mon, 22 Apr 2013 15:00:39 -0400 Received: from mx1.redhat.com ([209.132.183.28]:26578) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UULye-0002HQ-Ea for qemu-devel@nongnu.org; Mon, 22 Apr 2013 15:00:36 -0400 From: Eduardo Habkost Date: Mon, 22 Apr 2013 16:00:13 -0300 Message-Id: <1366657220-776-3-git-send-email-ehabkost@redhat.com> In-Reply-To: <1366657220-776-1-git-send-email-ehabkost@redhat.com> References: <1366657220-776-1-git-send-email-ehabkost@redhat.com> Subject: [Qemu-devel] [PATCH qom-cpu 2/9] target-i386/kvm.c: Code formatting changes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, =?UTF-8?q?Andreas=20F=C3=A4rber?= Cc: libvir-list@redhat.com, Igor Mammedov , Jiri Denemark Add appropriate spaces around operators, and break line where it needs to be broken to allow feature-words array to be introduced without having too-long lines. Signed-off-by: Eduardo Habkost Reviewed-By: Igor Mammedov --- Changes v9: * 1-char alignment change: keep the opening parenthesis of both sides of the "==" operator starting at the same column --- target-i386/kvm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target-i386/kvm.c b/target-i386/kvm.c index 0e7cc81..b5bff33 100644 --- a/target-i386/kvm.c +++ b/target-i386/kvm.c @@ -613,7 +613,8 @@ int kvm_arch_init_vcpu(CPUState *cs) cpuid_data.cpuid.nent = cpuid_i; if (((env->cpuid_version >> 8)&0xF) >= 6 - && (env->cpuid_features&(CPUID_MCE|CPUID_MCA)) == (CPUID_MCE|CPUID_MCA) + && (env->cpuid_features & (CPUID_MCE|CPUID_MCA)) == + (CPUID_MCE|CPUID_MCA) && kvm_check_extension(cs->kvm_state, KVM_CAP_MCE) > 0) { uint64_t mcg_cap; int banks; -- 1.8.1.4