From patchwork Mon Feb 8 08:05:27 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yolkfull Chow X-Patchwork-Id: 77670 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o1885bOV018107 for ; Mon, 8 Feb 2010 08:05:37 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753003Ab0BHIFf (ORCPT ); Mon, 8 Feb 2010 03:05:35 -0500 Received: from mx1.redhat.com ([209.132.183.28]:59390 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751699Ab0BHIFf (ORCPT ); Mon, 8 Feb 2010 03:05:35 -0500 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o1885X2Z031819 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 8 Feb 2010 03:05:33 -0500 Received: from localhost.localdomain (dhcp-65-181.nay.redhat.com [10.66.65.181]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o1885U57003546; Mon, 8 Feb 2010 03:05:31 -0500 From: Yolkfull Chow To: autotest@test.kernel.org Cc: kvm@vger.kernel.org, Yolkfull Chow Subject: [PATCH] KVM-test: SR-IOV: fix a bug that misplaced parameters location Date: Mon, 8 Feb 2010 16:05:27 +0800 Message-Id: <1265616327-5830-1-git-send-email-yzhou@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.16 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.3 (demeter.kernel.org [140.211.167.41]); Mon, 08 Feb 2010 08:05:37 +0000 (UTC) diff --git a/client/tests/kvm/kvm_utils.py b/client/tests/kvm/kvm_utils.py index 08af99b..cdf2a00 100644 --- a/client/tests/kvm/kvm_utils.py +++ b/client/tests/kvm/kvm_utils.py @@ -1089,15 +1089,14 @@ class PciAssignable(object): for content, file in info_write_to_files: try: - utils.open_write_close(content, file) + utils.open_write_close(file, content) except IOError: logging.debug("Failed to write %s to file %s" % (content, file)) continue if not self.is_binded_to_stub(full_id): - logging.error("Binding device %s to stub failed" % - pci_id) + logging.error("Binding device %s to stub failed" % pci_id) continue else: logging.debug("Device %s already binded to stub" % pci_id)