From patchwork Mon Jun 8 04:01:50 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: 28545 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 n5842CqA007564 for ; Mon, 8 Jun 2009 04:02:13 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750847AbZFHECI (ORCPT ); Mon, 8 Jun 2009 00:02:08 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750794AbZFHECH (ORCPT ); Mon, 8 Jun 2009 00:02:07 -0400 Received: from mx2.redhat.com ([66.187.237.31]:59277 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750797AbZFHECF (ORCPT ); Mon, 8 Jun 2009 00:02:05 -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 n58428h3027356 for ; Mon, 8 Jun 2009 00:02:08 -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 n58427b1009436; Mon, 8 Jun 2009 00:02:07 -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 n5841xta011888; Mon, 8 Jun 2009 00:02:06 -0400 From: Lucas Meneghel Rodrigues To: kvm@vger.kernel.org Cc: Lucas Meneghel Rodrigues Subject: [PATCH 3/3] Fix bad logging calls Date: Mon, 8 Jun 2009 01:01:50 -0300 Message-Id: <1244433717-3391-6-git-send-email-lmr@redhat.com> In-Reply-To: <1244433717-3391-5-git-send-email-lmr@redhat.com> References: <1244433717-3391-1-git-send-email-lmr@redhat.com> <1244433717-3391-2-git-send-email-lmr@redhat.com> <1244433717-3391-3-git-send-email-lmr@redhat.com> <1244433717-3391-4-git-send-email-lmr@redhat.com> <1244433717-3391-5-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)