From patchwork Mon Jun 8 04:04:30 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Meneghel Rodrigues X-Patchwork-Id: 28553 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n5844fqG007857 for ; Mon, 8 Jun 2009 04:04:41 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751051AbZFHEEg (ORCPT ); Mon, 8 Jun 2009 00:04:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751031AbZFHEEg (ORCPT ); Mon, 8 Jun 2009 00:04:36 -0400 Received: from mx2.redhat.com ([66.187.237.31]:54396 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750887AbZFHEEf (ORCPT ); Mon, 8 Jun 2009 00:04:35 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n5844cTP027612; Mon, 8 Jun 2009 00:04:38 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n5844b5U009740; Mon, 8 Jun 2009 00:04:37 -0400 Received: from localhost.localdomain (vpn-10-45.bos.redhat.com [10.16.10.45]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n5844VG1012083; Mon, 8 Jun 2009 00:04:35 -0400 From: Lucas Meneghel Rodrigues To: autotest@test.kernel.org Cc: kvm@vger.kernel.org, Lucas Meneghel Rodrigues Subject: [PATCH 3/3] Fix bad logging calls Date: Mon, 8 Jun 2009 01:04:30 -0300 Message-Id: <1244433870-3473-3-git-send-email-lmr@redhat.com> In-Reply-To: <1244433870-3473-2-git-send-email-lmr@redhat.com> References: <1244433870-3473-1-git-send-email-lmr@redhat.com> <1244433870-3473-2-git-send-email-lmr@redhat.com> X-Scanned-By: MIMEDefang 2.58 on 172.16.27.26 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org During the conversion of kvm autotest to upstream coding standards, some bad logging calls were left behind. This patch fixes them. Signed-off-by: Lucas Meneghel Rodrigues --- client/tests/kvm/kvm_utils.py | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/tests/kvm/kvm_utils.py b/client/tests/kvm/kvm_utils.py index 434190d..37a1f22 100644 --- a/client/tests/kvm/kvm_utils.py +++ b/client/tests/kvm/kvm_utils.py @@ -304,7 +304,7 @@ class kvm_spawn: # Print some debugging info if match == None and self.poll() != 0: - logging.debug("Timeout elapsed or process terminated. Output:", + logging.debug("Timeout elapsed or process terminated. Output: %s", format_str_for_message(data.strip())) return (match, data) @@ -465,8 +465,8 @@ class kvm_spawn: # Print some debugging info if status != 0: - logging.debug("Command failed; status: %d, output:" % status \ - + format_str_for_message(output.strip())) + logging.debug("Command failed; status: %d, output: %s", status, + format_str_for_message(output.strip())) return (status, output)