From patchwork Wed Aug 29 21:00:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 145475 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp45040ljw; Wed, 29 Aug 2018 14:01:16 -0700 (PDT) X-Google-Smtp-Source: ANB0VdafQAoHERjsY19nRqG96xSRMAdQytZkohMUlVzQfsd1zPHgdQFoTg4mVq6SclBA0kDl+ikq X-Received: by 2002:ac8:2a13:: with SMTP id k19-v6mr8575950qtk.245.1535576476188; Wed, 29 Aug 2018 14:01:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535576476; cv=none; d=google.com; s=arc-20160816; b=D3unqju7IQGihJTe10S8vzeDIh3TKtA6zrCGeDA6jGAzO7HTir9tQ9h5M7arubdVs5 t7IkEPhPOQ/CYC1vF3NMb38/sxVht9ppq7Xfr11nvtQQd92uenDtNtS0Uykh82cQtQhp /yUxwmGif8qZpiwIOqvehwIO6wp2jb2CQDyAhI3jDEoMxiOFuEBBHLaRcXD4S0I/sT25 JwA/eI7ftIcK/k9gLnxI6Zg7A9+aCls9FPXWAk2NXgehvBNZ2htiVd17QczsYqpFKXwa b/SqlOyaEZhIn9B7AhZru3CHmnKJnbzcYn1bv+L78z3dmDw+66xBtDlI0RHOWEhQv0zB KJKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=O2d0TnJKRl/WacAqAUNzX7Gvucbb4OkU9E4g6JcWT3Q=; b=Eo3NRaUwjX79cyJR0QObdWdnZEO6Cpnn0HXXOi6HTNonlO++5tt0ce/RXVQWH/e/2q s746uStCbjNlW3yhLSe0QbCVTph+laC+ocHq4MBA8vuetMO7V3aidS2p9mCrgrVGcWUK ZCKAt+vbZ9JcUClz/ZdzZvvzWUEzQ43z9ImGuc/FPmTE0It1ijmMZCcsi3GJUcKJscgB pHUKzFcxSTGSMO6uQEJXQAVEaljIt3GzUDnAXVUtsb6cGTaRguVc1JMlQqOXgT5zih9B mzDRT3iOk+VVWBZ46SADrjRePZemn8tcxDKTJ8NpMqs6KA5MDI6BggdfUl/Uj7pCXyCq dwaA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id t68-v6si4620504qkc.395.2018.08.29.14.01.15; Wed, 29 Aug 2018 14:01:16 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id B90B060F2C; Wed, 29 Aug 2018 21:01:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_LOW autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 7B01260BF3; Wed, 29 Aug 2018 21:00:29 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 5847960F00; Wed, 29 Aug 2018 21:00:21 +0000 (UTC) Received: from forward104j.mail.yandex.net (forward104j.mail.yandex.net [5.45.198.247]) by lists.linaro.org (Postfix) with ESMTPS id B5F35609A4 for ; Wed, 29 Aug 2018 21:00:17 +0000 (UTC) Received: from mxback12g.mail.yandex.net (mxback12g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:91]) by forward104j.mail.yandex.net (Yandex) with ESMTP id 161DF447E3 for ; Thu, 30 Aug 2018 00:00:16 +0300 (MSK) Received: from smtp1o.mail.yandex.net (smtp1o.mail.yandex.net [2a02:6b8:0:1a2d::25]) by mxback12g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id ZhNZhnrcgt-0G90QoKZ; Thu, 30 Aug 2018 00:00:16 +0300 Received: by smtp1o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id WAQf5TNbUy-0DpakVHI; Thu, 30 Aug 2018 00:00:13 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Wed, 29 Aug 2018 21:00:06 +0000 Message-Id: <1535576407-32067-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535576407-32067-1-git-send-email-odpbot@yandex.ru> References: <1535576407-32067-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 686 Subject: [lng-odp] [PATCH v1 1/2] linux-gen: odp_shm_print_all: print user len also in hex X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Maxim Uvarov Original code prints len in hex and actual len in dec. That is hard to compare. Print both lens in hexadecimal. Signed-off-by: Maxim Uvarov --- /** Email created from pull request 686 (muvarov:devel/master_shm_print_all) ** https://github.com/Linaro/odp/pull/686 ** Patch: https://github.com/Linaro/odp/pull/686.patch ** Base sha: 97fc51b1e5b3fcea9db99ba63c10bda47f79341a ** Merge commit sha: f69e295240994a3f642957c1a78d208242d066dd **/ platform/linux-generic/odp_ishm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/linux-generic/odp_ishm.c b/platform/linux-generic/odp_ishm.c index fc2f948cc..131dd7057 100644 --- a/platform/linux-generic/odp_ishm.c +++ b/platform/linux-generic/odp_ishm.c @@ -1780,7 +1780,7 @@ int _odp_ishm_status(const char *title) huge = '?'; } proc_index = procfind_block(i); - ODP_PRINT("%2i %-*s %s%c 0x%-08lx %-8lu %-3lu %-3lu", + ODP_PRINT("%2i %-*s %s%c 0x%-08lx 0x%-08lx %-3lu %-3lu", i, max_name_len, ishm_tbl->block[i].name, flags, huge, ishm_tbl->block[i].len,