Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2487975imm; Sat, 28 Jul 2018 19:13:08 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdUyWNho7jWrll4svaMNzOacLFLb5UjYFmL5sO6UWlCf8AnBLU6atyg2PFC78cg8MdAdGul X-Received: by 2002:a17:902:a5:: with SMTP id a34-v6mr11651772pla.60.1532830388326; Sat, 28 Jul 2018 19:13:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532830388; cv=none; d=google.com; s=arc-20160816; b=wh9LsqDx6gMjNc1M6aciJQMtLwb3wOteLE70w95pJ33UMiu2bC1cg44inkAeLDTyF7 4bJyqobmQ7PaJK5aKQocVRfGzz/rRsz8AQSXD5sjtwPlR/bABh23W/GoGZ05aEZ4Ntzd 7DS/ANEFq5fEShIrsCIkaHP3Ee5lB5aheeZX6qnfoAxjhMe+hQE3NSLrPGYaFH8e6NkB 8zjyyXlS0k09tWzeeMjdlrzrH7LYTPxSiFidmiwi6uTqll6tSRLlXBFYig1X7GbB96Ei Fc2vRpQwXkhEgb0C9+fy3bB6woRuGTK45PI+VGKj9JkDa51kmqxNopL+N2npFx8A2+J2 HhFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-filter :arc-authentication-results; bh=TKRNv+OwBbWoPHFU2RCqcHvixhKMHXpwFn/1JlbAfNI=; b=AyuKydmMDwe0zOQRCBEduj3hoP6uh11lfEOlFuaBOFCax9UIsAhME8QN3RnvRiI46M iHVvjws/XC9DHenjfhGq7AcrBoHlT7LxF849xcN8JycIK0zLtKIVAF53eIwD2M9c3gWm vdnJ2yPHpII7+wyjqxQ37f3PNs2cUqGaYUouErtqMnNXFbTQhV8IuTdKJnyVfrbGCtxo Qf973X0fgxqJjl4AvCIOxKxXR2fVdCpQNbqZcGqisldp3K7e1nBfQYhh+OPJT/DUsR0c TpEX+KXHkHQRGthWxzGGd16F39kXH8Wojunj+G93gemZrHj1QbPtT2TQkyQ9TJ5D+H9g 7tmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=PfqiXRSA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e98-v6si7162272plb.150.2018.07.28.19.12.53; Sat, 28 Jul 2018 19:13:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=PfqiXRSA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731794AbeG2Dkp (ORCPT + 99 others); Sat, 28 Jul 2018 23:40:45 -0400 Received: from conssluserg-04.nifty.com ([210.131.2.83]:59496 "EHLO conssluserg-04.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731506AbeG2Dkp (ORCPT ); Sat, 28 Jul 2018 23:40:45 -0400 Received: from mail-ua0-f174.google.com (mail-ua0-f174.google.com [209.85.217.174]) (authenticated) by conssluserg-04.nifty.com with ESMTP id w6T2C28A005073; Sun, 29 Jul 2018 11:12:03 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com w6T2C28A005073 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1532830323; bh=TKRNv+OwBbWoPHFU2RCqcHvixhKMHXpwFn/1JlbAfNI=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=PfqiXRSAnRwXE9k+WVCWqOGmXgI92mzugCV71zcILXFs6k605dGuGGnalCnFvzmzD Nw1TCpfrBWtHcNif7zuv/uPp+JOW0Ii17T6OIRPvfBRZyPkmomb3uk4+eWBcURLNeV zMHDORgq+PFxkF+kCyIt9nViMUins3AE4c2mMo7bSWx/siKVYGBQVOGu6gJ4Nxh/og Im+e0bV1J4QqzedrKDTPRdYyn+g2VdeU5sMBM8R4i+SvhJVUmKmevt7YlV6oLUhP8r 4t8+UVR21283nm42Gd+Nj5mkF6lnCDMgVw4ib+Kef2krB8ry41uEQfC8OyEPVy75AE kWp3jeh6fTDvg== X-Nifty-SrcIP: [209.85.217.174] Received: by mail-ua0-f174.google.com with SMTP id i4-v6so5763542uak.0; Sat, 28 Jul 2018 19:12:02 -0700 (PDT) X-Gm-Message-State: AOUpUlEun2Fny4ArRfg57zbFzD1OFSXgOxtQ60JDbbSrAe5Qqjr1ZDDx ITEUHxLE6jlU0yZ2GPm48o8vZzVfZ3K4+kV4WBM= X-Received: by 2002:ab0:4c24:: with SMTP id l36-v6mr8515656uaf.199.1532830321995; Sat, 28 Jul 2018 19:12:01 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ab0:7289:0:0:0:0:0 with HTTP; Sat, 28 Jul 2018 19:11:21 -0700 (PDT) In-Reply-To: <20180728144833.6336-1-jcline@redhat.com> References: <20180728144833.6336-1-jcline@redhat.com> From: Masahiro Yamada Date: Sun, 29 Jul 2018 11:11:21 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] scripts: Add Python 3 support to tracing/draw_functrace.py To: Jeremy Cline Cc: Michal Marek , Frederic Weisbecker , Linux Kbuild mailing list , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-07-28 23:48 GMT+09:00 Jeremy Cline : > Use the print function. This maintains Python 2 support and should have > no functional change. > > Signed-off-by: Jeremy Cline > --- Applied to linux-kbuild. Thanks! > 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() > -- > 2.17.1 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- Best Regards Masahiro Yamada