Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp746612ybz; Wed, 15 Apr 2020 18:04:19 -0700 (PDT) X-Google-Smtp-Source: APiQypLvLcOR3wY4jA5jocEn37tWd6Fq1+btLSx9C96oeTm9PtsNk90tTfWamzpfgEytIYc9NIfV X-Received: by 2002:a17:907:40ec:: with SMTP id nn20mr7096314ejb.294.1586999059086; Wed, 15 Apr 2020 18:04:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586999059; cv=none; d=google.com; s=arc-20160816; b=kwyYk1AmHL2aF8SbALTI6GOhKBg/y+P95U7O68eB6HoD7mqPfRzj2q4IVB9azW17XZ XXgS3Pr1NhCN/7MNbAVDcJ88ay/rJycpidSvwKOPi7XjiE59+nr1VdlyVxcFpaWhoKMg e5A8VhCymt+BCJeyugIfNQUYl0KwX+u2QkoVv+As2uH9pZsKlx3ExbOqDZmZatYqkRYK emoxFkjHdFYyCLNySnkPHxqEgx+HJo2Mr/7mG8frble+tiAw6807bHOEvgsMKp1lDrG2 6Svu16VWib/QTvGWhG0GP16QeefU2YS1uh2GFufpXfNb9m2Qw2s8PatUXD/ouOmFAUHK s61Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Bm4kU2ZKp3QMbAy5SoYEcpKZV6RD0npZxWuwzSCGnUs=; b=YZUJd9vgqjOqPhHy27NoQfihGW+rL8Zzmf0lFpKpuw3XgGugxk9bqI9aqGk0+Vw9cF 7vziXYw8FwIjkPDAQC0UCE9xshowfKLznf2PcBsQKBVLsg8HVU7VE5UopIjGR+IuNpFU RvUcxopMQImkuT7e/lkVxhlH/M+27NDfv3UXXKkdL9TRRf32v/oIbHTvZ8cxI+50BN/F EPvvMAI6CkXpqDRWufv+4FjMsFDp9HVObevrJUwMnq7d8SBVTw9K6LzxMcp+6p4XJXvq /LQz3/poEoKzBdwfk8MR2jgDeMnC7GtsrxdY0ZQz55g15KrAQ5cBxobQld/rZBuDx3yN 8ugw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=KqdhYQ0z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ar26si10893847ejc.326.2020.04.15.18.03.55; Wed, 15 Apr 2020 18:04:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=KqdhYQ0z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2411880AbgDOTaY (ORCPT + 99 others); Wed, 15 Apr 2020 15:30:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2436598AbgDOT3T (ORCPT ); Wed, 15 Apr 2020 15:29:19 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9AB40C061A0F for ; Wed, 15 Apr 2020 12:29:18 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id d17so429293pgo.0 for ; Wed, 15 Apr 2020 12:29:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Bm4kU2ZKp3QMbAy5SoYEcpKZV6RD0npZxWuwzSCGnUs=; b=KqdhYQ0zbtL9yXg2Bxk2e3AR19MJWNUGM564TCk0GdOiHPJqNwDW5BEC1kr3BJWybs gUogR76cvvkgK3pwZp/3ANsg9SJxFBFtpZbE9NvrthZf+5TWO38Nht+VaBh+ZuaGBp2I aXk6UIz0PzTSyTO6hk9isRYNGiW1X2Mh2ih6g= 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:mime-version :content-transfer-encoding; bh=Bm4kU2ZKp3QMbAy5SoYEcpKZV6RD0npZxWuwzSCGnUs=; b=gcoPOq79tBizpJPbVeOoCHm0BzkibBKZdq2WtkXlogYlKJN92gl9SWbfM/IJ4Emge4 j0jYSI6dHQ4A98Q4gWD+AxYDAs0omOh6+hZ175q8J9J0SlVV3NNT1DKmAGno0Hn4X9s+ lD+URtCZSlGtdKEey7r+mFWgCKCTOPe/MWnux7GPNRvwync2RI7CD3V+FuFVrZcCA8ta P6OmeDUgRGoJ5iOqLuym9CdCYneSVrjt4cnnpojwRW0SPG2y2TBJUQMvEwwIluHxJrNl ue2v1NhqaykR1QRd1RJoBn3P9bLgXdrpmQ+lTkMr8I/ehSmWVOAfzHst9X/qS3Optwda 6Fxg== X-Gm-Message-State: AGi0PuYz7FA0tG6JyeNWzb2v7A7W5pqfMXFTbUWGgjQM3LFhZdYvXF9X tkjR5vuXrjho7zobXUnpDzKHWw== X-Received: by 2002:a63:1118:: with SMTP id g24mr28220456pgl.259.1586978958145; Wed, 15 Apr 2020 12:29:18 -0700 (PDT) Received: from smtp.gmail.com ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id x4sm14566641pfa.191.2020.04.15.12.29.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Apr 2020 12:29:17 -0700 (PDT) From: Stephen Boyd To: Andy Gross , Bjorn Andersson Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Lina Iyer Subject: [PATCH] soc: qcom: cmd-db: Use 5 digits for printing address Date: Wed, 15 Apr 2020 12:29:16 -0700 Message-Id: <20200415192916.78339-1-swboyd@chromium.org> X-Mailer: git-send-email 2.26.0.110.g2183baf09c-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The top few bits aren't relevant to pad out because they're always zero. Let's just print 5 digits instead of 8 so that it's a little shorter and more readable. Suggested-by: Lina Iyer Signed-off-by: Stephen Boyd --- drivers/soc/qcom/cmd-db.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/qcom/cmd-db.c b/drivers/soc/qcom/cmd-db.c index 57382b64f1da..4f8b739c6485 100644 --- a/drivers/soc/qcom/cmd-db.c +++ b/drivers/soc/qcom/cmd-db.c @@ -278,7 +278,7 @@ static int cmd_db_debugfs_dump(struct seq_file *seq, void *p) ent = rsc_to_entry_header(rsc); for (j = 0; j < le16_to_cpu(rsc->cnt); j++, ent++) { - seq_printf(seq, "0x%08x: %*pEp", le32_to_cpu(ent->addr), + seq_printf(seq, "0x%05x: %*pEp", le32_to_cpu(ent->addr), (int)sizeof(ent->id), ent->id); len = le16_to_cpu(ent->len); base-commit: d6815c5c43d4f9d18e557d27fd27ae8d9cfd450c prerequisite-patch-id: fc235b174200bb1b24876628a89a841d1c2e4aad -- Sent by a computer, using git, on the internet