From patchwork Thu Apr 21 06:53:57 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Yuan X-Patchwork-Id: 724021 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p3L6sSOF012038 for ; Thu, 21 Apr 2011 06:54:28 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752369Ab1DUGyL (ORCPT ); Thu, 21 Apr 2011 02:54:11 -0400 Received: from mail-pw0-f46.google.com ([209.85.160.46]:58765 "EHLO mail-pw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750858Ab1DUGyK (ORCPT ); Thu, 21 Apr 2011 02:54:10 -0400 Received: by pwi15 with SMTP id 15so765191pwi.19 for ; Wed, 20 Apr 2011 23:54:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer; bh=X+lsFS/hWhzpUp2ZwrgM/7Lem7vzO1HS6xqcatYFe4Q=; b=BmSk/9B9QbaBwRzK+2soV9iK8L6ZpXWM3IeGWkfp/aNT9SZTiHDgOaaw+srQbikwJ4 FgahvAZXN277Rdbm2WvzFHR+EH3DOdogP9QVUpwSrJDpdO2ENiKhN+4Ez6t7h4Pqkab/ dX70PZDMmm496sYjLtnemep46NPC8BoCc9fvI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=QAoXtihgy51JvjigB8+X+f+iAoSdhPbsN8ijGawmVfhUq/rGDg5tGVMZG2cHKGtzUo ovobohWR1QFoUs3B0waW+zWUpTDAT3ze1/E5kv1xZPzaMuC+vRNCv+qQW3/OkgZB62xC WoT1d9KCj6jHu/Efdv6kRQV+6WyO4T6ddC0T4= Received: by 10.142.62.35 with SMTP id k35mr4531778wfa.67.1303368849958; Wed, 20 Apr 2011 23:54:09 -0700 (PDT) Received: from localhost.localdomain ([114.251.86.0]) by mx.google.com with ESMTPS id n4sm2203455wfl.2.2011.04.20.23.54.04 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 20 Apr 2011 23:54:08 -0700 (PDT) From: Liu Yuan To: Avi Kivity , Marcelo Tosatti Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] kvm, ioapic: Fix an error field reference Date: Thu, 21 Apr 2011 14:53:57 +0800 Message-Id: <1303368838-5620-1-git-send-email-namei.unix@gmail.com> X-Mailer: git-send-email 1.7.1 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 21 Apr 2011 06:54:28 +0000 (UTC) From: Liu Yuan Function ioapic_debug() in the ioapic_deliver() misnames one filed by reference. This patch correct it. Signed-off-by: Liu Yuan --- virt/kvm/ioapic.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/virt/kvm/ioapic.c b/virt/kvm/ioapic.c index 0b9df83..8df1ca1 100644 --- a/virt/kvm/ioapic.c +++ b/virt/kvm/ioapic.c @@ -167,7 +167,7 @@ static int ioapic_deliver(struct kvm_ioapic *ioapic, int irq) ioapic_debug("dest=%x dest_mode=%x delivery_mode=%x " "vector=%x trig_mode=%x\n", - entry->fields.dest, entry->fields.dest_mode, + entry->fields.dest_id, entry->fields.dest_mode, entry->fields.delivery_mode, entry->fields.vector, entry->fields.trig_mode);