Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2029310imm; Sat, 28 Jul 2018 07:50:27 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdIGshr8o6g3LJbQVZLcduLBMO/KjJiZxNeF/cjF4Q2hoTh78uOimCwX905AduYhCcsCCtj X-Received: by 2002:a65:5581:: with SMTP id j1-v6mr10219556pgs.203.1532789427396; Sat, 28 Jul 2018 07:50:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532789427; cv=none; d=google.com; s=arc-20160816; b=fMRy6czIBhP+n5InX19IohXsRQccfRb7e8bN6ValRVxcD60RpYr4wXHlXDDEOPerj0 x8VMWhTyFt/Mgcfxtu0Z3qzVNxkaLzBZBz9mLBwhdw9RnSlre9nPPHAzFQ0ZWAFOTt2l 6Ya3hvEsk3jtE5p0G1M2yZfAd+cJ/YhKcsUWMwlFKwdNhlSvz3EP+Zff4dPrmqocI0SH 57RHsfJjxDHhAfhAeWjsP/up/h7NLvijFuXNIbdte4wj7Dk0j63z8QlPEdLRjs5l/Ltm NTV9GxkW0nEV0HukM8v/lguMYm+M7YU71GRP2WmLm0+rUJZV/IcWyalc5ckK+BtC/YWT MBzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=rBFdVE2hfAKUkCM4FwuJpgZgNz/b3YNexX/987R+Il0=; b=Xdcikc3TNeu66kGmr2S3VWL8lZ2xIPtvhgaD8Nq9wWFksCnGdTkFh7hCrnuxXxOSe/ aHhXEEcRi5mQOpS4EcQB3XLmgAG9ZNonpW/Z00PFzUQ/q7bVdioSAs2tJ44AKEXmXSUw K5ebU19QJQs+RKCKAGAfXfBvKfRXhBy3WWv321FAShEg25QDTWi8cYcchh1+OGsv4Eai NOVZdJGGkVd3qNwX40RZqS5u0XhG2hBTlAj5nJz0pumJZkcyuRKHQgQtDItglDzuU2zC n9DK3kHNCeh82Gp93Ww4jL7YOspWaA9Wj2KL5JL7tkaCFcBcRGdMMS2dRZppW9d+UV5R x+9Q== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o12-v6si6896414pfd.142.2018.07.28.07.50.11; Sat, 28 Jul 2018 07:50:27 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729026AbeG1QQG (ORCPT + 99 others); Sat, 28 Jul 2018 12:16:06 -0400 Received: from mail-qt0-f194.google.com ([209.85.216.194]:43617 "EHLO mail-qt0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728949AbeG1QQG (ORCPT ); Sat, 28 Jul 2018 12:16:06 -0400 Received: by mail-qt0-f194.google.com with SMTP id f18-v6so8016165qtp.10 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=m23ektin38OUN2BJ0pM8xeAGwDYnc1XeSR+/PJsx7lq5pnidg713PQFwyVBf3l23aj VR02QwPXFfQlSCgTv0P0o2p8tS5a/my7WAJ5WdpHseyCKORHSVfA9hIasxkFIYuY7vQC QJ/lVhfDrtCQW+jhSQKs0/KdZAlcdDUMOBvhpCzB8RfTqlFQAbP/GWEL579Z4Xfv6oYh eElIiTH1/NdGrKKsrV12dKBG7YBvK0QLxzkxSpJQphRMb7cH8FJPBxvtMFnMh7l1HupU 9988xD0DVx8iabCNh2ucGlQkZC8KRALPZwLol1bL3z2Tsvj3j/ScpxWyGYMxs1wS73jP nqaw== X-Gm-Message-State: AOUpUlFESmvQsApfgQmVHRVPszyuWFSh6egzJhWZU+zEpGhb1SSWWJIH ccJHlVJkjLJ+ENKAaBTKkhPyEw== 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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() -- 2.17.1