From patchwork Tue Jun 9 16:33:29 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: 29047 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 n59GXq7Q022980 for ; Tue, 9 Jun 2009 16:33:53 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756331AbZFIQdi (ORCPT ); Tue, 9 Jun 2009 12:33:38 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754959AbZFIQdi (ORCPT ); Tue, 9 Jun 2009 12:33:38 -0400 Received: from mx2.redhat.com ([66.187.237.31]:45328 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755966AbZFIQdh (ORCPT ); Tue, 9 Jun 2009 12:33:37 -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 n59GXduS000357; Tue, 9 Jun 2009 12:33:39 -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 n59GXcGx004151; Tue, 9 Jun 2009 12:33:38 -0400 Received: from localhost.localdomain (vpn-10-103.bos.redhat.com [10.16.10.103]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n59GXVmJ000563; Tue, 9 Jun 2009 12:33:36 -0400 From: Lucas Meneghel Rodrigues To: autotest@test.kernel.org Cc: kvm@vger.kernel.org, Lucas Meneghel Rodrigues Subject: [KVM-AUTOTEST PATCH 4/4] Fix bad logging calls Date: Tue, 9 Jun 2009 13:33:29 -0300 Message-Id: <1244565209-9132-4-git-send-email-lmr@redhat.com> In-Reply-To: <1244565209-9132-3-git-send-email-lmr@redhat.com> References: <1244565209-9132-1-git-send-email-lmr@redhat.com> <1244565209-9132-2-git-send-email-lmr@redhat.com> <1244565209-9132-3-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 0f4c770..70a49c9 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)