From patchwork Sat Jul 28 14:48:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeremy Cline X-Patchwork-Id: 10547991 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 09B6F139A for ; Sat, 28 Jul 2018 14:49:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ED1B92AF7A for ; Sat, 28 Jul 2018 14:49:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E04322AFA7; Sat, 28 Jul 2018 14:49:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 80E7A2AF7A for ; Sat, 28 Jul 2018 14:49:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728949AbeG1QQG (ORCPT ); Sat, 28 Jul 2018 12:16:06 -0400 Received: from mail-qt0-f195.google.com ([209.85.216.195]:36638 "EHLO mail-qt0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728973AbeG1QQG (ORCPT ); Sat, 28 Jul 2018 12:16:06 -0400 Received: by mail-qt0-f195.google.com with SMTP id t5-v6so8020896qtn.3 for ; Sat, 28 Jul 2018 07:49:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=rBFdVE2hfAKUkCM4FwuJpgZgNz/b3YNexX/987R+Il0=; b=ActnDc8ucs7L9uwsnjWryBHaFp4r91SlUVTUh00Rgsh8e7ZldoCr2JqLb3z85/NflZ Mz3mm9ukdL9y4VP52Qy6JcEddnQ6G36Z6O7Ns2p9/bJYRNoG0NVnJJkRLxzD77ARrC0n C1AmJ1NatR9eBo36++D2f+1CL7TtYL7VV/rM7ge4JezYxmI/o9WXzhO+EpL2WFAU5BXV wzaB8eTj5n+ryiT7Pcnmb6YoHl4pab9vqQtyrvLJhf47OhAaOCqVeJ8+BOGfJCudCa3A 8by0Ho/TI3tVKrPZgx3K3dThazVvucTwZi8HeKEaZ88HFmufsDDd8T83RFmCQJraCQCv 0gPg== X-Gm-Message-State: AOUpUlHyYsst3kIxSNpMGu41QRNwLTiHLmxAHLDSC/sJHkt8ba+lpnv9 XlKoKzM9m0IfKZhF8mAYN+CG81ThmBpnEA== X-Google-Smtp-Source: AAOMgpfi8PKirM6l5smKCGnYj9tzJHU7kUg+ilUeyqmJAOqLJn8+xP81l5JN9MNMB+WhQ+ecjcVY4A== X-Received: by 2002:a0c:d957:: with SMTP id t23-v6mr9341293qvj.149.1532789360520; Sat, 28 Jul 2018 07:49:20 -0700 (PDT) Received: from laptop.jcline.org (075-177-179-204.res.spectrum.com. [75.177.179.204]) by smtp.gmail.com with ESMTPSA id v57-v6sm4996328qtc.75.2018.07.28.07.49.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 28 Jul 2018 07:49:19 -0700 (PDT) From: Jeremy Cline To: Masahiro Yamada , Michal Marek Cc: Frederic Weisbecker , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Jeremy Cline Subject: [PATCH v2] scripts: Add Python 3 support to tracing/draw_functrace.py Date: Sat, 28 Jul 2018 10:48:33 -0400 Message-Id: <20180728144833.6336-1-jcline@redhat.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Use the print function. This maintains Python 2 support and should have no functional change. Signed-off-by: Jeremy Cline --- Changes from v1: - Drop "from __future__ import print_function" as Python 2 is not long for this world and in this case the statement and function behave the same way. scripts/tracing/draw_functrace.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/tracing/draw_functrace.py b/scripts/tracing/draw_functrace.py index db40fa04cd51..9b6dd4f36335 100755 --- a/scripts/tracing/draw_functrace.py +++ b/scripts/tracing/draw_functrace.py @@ -123,7 +123,7 @@ def main(): tree = tree.getParent(caller) tree = tree.calls(callee, calltime) - print CallTree.ROOT + print(CallTree.ROOT) if __name__ == "__main__": main()