Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp880240ybp; Fri, 11 Oct 2019 05:57:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqydBAp8a2CZUHau1Uf2RY/wJh3beSBZkz9MdbbeAPU5CFR+qqrxyOzgStZJYr6m2mjMTZz5 X-Received: by 2002:a17:906:2490:: with SMTP id e16mr13906451ejb.182.1570798637924; Fri, 11 Oct 2019 05:57:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570798637; cv=none; d=google.com; s=arc-20160816; b=T96AO0ALv3amW6/vVkNHADIJMmsPzilQYhS08NTf9tSnRjjRtV7ZrhxDR1mUglAJ96 jHAsdXFgpesMF6MomzAl3/90nTcghOYjsAQ25HfHyO5/AIyk2iBAXZBl0gAp3W0fUYyy C4UqBUACwKwSIZ0vt9Rp0UEN6k0KOR/Dm1SXwHD0zqv71mdFybdpMZFI2wVVl/hCiKDc HRLtbTqU2hYPSjfvGqRsZv8l2CMxXxm/5x/2GXdBIT0sf+eAbNFyH4TiOE9FmfyZJD2c YEm+QsVn4hsbNB2DOtAeV8TRSPN9CnGvd9wNCqqHoPLnh4Oz3ONAcx3Kn1bHk8oZXsdV 1inA== 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 :in-reply-to:references:mime-version:dkim-signature; bh=+EUqmfGWDAdL05osSjASqHsDbqgdE65EEIXIm83sDD4=; b=aQZICpo02t4NzjO5IwrGkqXILBEbTFK/DMO+1Bxor58P85t7hWonnWhjrTctOMBXgK M/YSbq1pCS9eBdBLIvk4mTLzfLXMPNw0Mwkrqgtb4I60AJv3dlEQI4YbQsNNmE5yQLCc zNtRlJqta7Wg6UK8BKj6YXQcAxDqZM0lMGrUd1C4Hbajxa4iDFfjIKb1Y9axiz67n6mI 0qD9f03JcVzFHaMg+WDNr1mB4+TkBU2yRZnIOW/PjTe7uv78c9Zb3Kb0lVfoK71l5bR4 0jqF9hSlgPN5I+ylFZJuJ3DQk4Jbvi22XwyJkWhe3xHHpjwUUb+zJUEghBsB7WRD73+f 1WpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linbit-com.20150623.gappssmtp.com header.s=20150623 header.b=xojgy9x7; 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 oq11si5081739ejb.388.2019.10.11.05.56.54; Fri, 11 Oct 2019 05:57:17 -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=@linbit-com.20150623.gappssmtp.com header.s=20150623 header.b=xojgy9x7; 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 S1728179AbfJKM4b (ORCPT + 99 others); Fri, 11 Oct 2019 08:56:31 -0400 Received: from mail-io1-f68.google.com ([209.85.166.68]:38308 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727883AbfJKM4b (ORCPT ); Fri, 11 Oct 2019 08:56:31 -0400 Received: by mail-io1-f68.google.com with SMTP id u8so21254571iom.5 for ; Fri, 11 Oct 2019 05:56:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linbit-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+EUqmfGWDAdL05osSjASqHsDbqgdE65EEIXIm83sDD4=; b=xojgy9x7vGpMMO1XVw+kggflG5vf16sNOXA9BOGMWJB9Nn9oVWLGyTyB3ES0iL+QOq FRmH2C2vYADTVbuR7KudRp5AXZtblAtNWvktzJQgTxLRpGk08aBFh6KzgpObif8iLZbS n50vWK737S5/rORFqdgs47B87xZWTpn8tzyxipV2nVykeqmQW/GpUyOk05pCLY+C1Jw8 R/jGy7+ZlxgUgcOctIAH4dU/o+nBTNfd5tYdA9E6LOo3VycET2Tp+vugD3gUMmeqxwaA KG1ZKJsG+GUm+BbEGlWkyRNg+jIz0c+XuetfWz+zWbQMWxVWz4eGAnYbp9Mcceai0luz 9TTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+EUqmfGWDAdL05osSjASqHsDbqgdE65EEIXIm83sDD4=; b=poK7yQmqfpSLuq/DNKNMkkWnKTMAkrZUd3pnSCMP6e8ruL4/lP2npH3iqi8Jchfcz6 TFIA8XtYc55uk9ATBrJygy7g3S3UpNLVIA8cuAli+Yity/6SBsC5IdAic6pJMX3eqr06 wzAXGkiZP+7WXXI8Tm1ovBLW3CaNqw0z3sUwlxeZpyLh2lRJDx7eycG8EOCwH7bktyyg O3E0grz3LSKceG0K3ITqyhdotDqjoBIRPtKJi5roHRacQzqb3GNbZrui7w4B85W9ugcL 7asSPQ472inIah4Jp7n7GH21q9kFISUXhtFpI/mkc8gPfx07BfX0h4kt0oSJaVvgPW4y xPYw== X-Gm-Message-State: APjAAAUJm8tEzajWNlyX00njJe2fwSEpa6Z2TRzgcx7ta56VohHg8OEo aP/YQv2nBOC6jeqysP3EnWnwL2zF76tjFwD9+bVfkg== X-Received: by 2002:a02:cc5b:: with SMTP id i27mr9531652jaq.63.1570798590649; Fri, 11 Oct 2019 05:56:30 -0700 (PDT) MIME-Version: 1.0 References: <20191011122409.23868-1-joel.colledge@linbit.com> In-Reply-To: From: Joel Colledge Date: Fri, 11 Oct 2019 14:56:19 +0200 Message-ID: Subject: Re: [PATCH v2] scripts/gdb: fix lx-dmesg when CONFIG_PRINTK_CALLER is set To: Jan Kiszka Cc: Leonard Crestez , Kieran Bingham , linux-kernel@vger.kernel.org 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 On Fri, Oct 11, 2019 at 2:38 PM Jan Kiszka wrote: > Does bitpos really use a non-int type? Otherwise, plain '/' suffices. bitpos uses gdb.Field. When I use '/' I get an error: Error occurred in Python command: slice indices must be integers or None or have an __index__ method I'm guessing gdb.Field has some kind of override which causes it to be converted to float when using '/'; hence '//'. > Overlong line. > ... > Here as well. Better use some temp vars to break up the expressions. > Helps with readability. Will do.