From patchwork Thu Dec 1 15:26:00 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 86072 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp743747qgi; Thu, 1 Dec 2016 07:26:27 -0800 (PST) X-Received: by 10.55.141.196 with SMTP id p187mr4787651qkd.240.1480605987921; Thu, 01 Dec 2016 07:26:27 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id h64si365535qtd.325.2016.12.01.07.26.27; Thu, 01 Dec 2016 07:26:27 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 5E58762D1B; Thu, 1 Dec 2016 15:26:27 +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=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL 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 63CDD62D2E; Thu, 1 Dec 2016 15:26:23 +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 9E6D662D53; Thu, 1 Dec 2016 15:26:20 +0000 (UTC) Received: from mail-lf0-f48.google.com (mail-lf0-f48.google.com [209.85.215.48]) by lists.linaro.org (Postfix) with ESMTPS id A35CD62D1B for ; Thu, 1 Dec 2016 15:26:19 +0000 (UTC) Received: by mail-lf0-f48.google.com with SMTP id b14so174022486lfg.2 for ; Thu, 01 Dec 2016 07:26:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=eTkFotd0RQ0XFtFNVeuDZd9udike7Q97fbOwqrpi1jQ=; b=mYj17YKGsWqqx4n/2yUtGtZ0MoJhuxg2y7bkQFhWo4RaRGPTLH26OkIS2gFKVioR3+ g3sricejA7ZgFO4dJeyTvAUCiQmbJXlvASEfLjCMn7UH2OPB7nXvBzU8wlP9ITWt49Fv 1z7fmMjRMD7O3x5YinLRg1O8ETLtTp1B9eShbRp66LmFntc26f5VP5/KokFppk3bW1gX xZojHGGS7dqmzBmMjhMB3ZSDpFc7ssQ1LUFrJ88EbinE/ezMiY3JK4VDKRLDKFTrZ+7B SmwazPKr6GbuVWrWmn4f6tCRV/UYA9yaLhZD8nSVe4yt5QIAebS1GQolF1KaoLTX1I+j ECjA== X-Gm-Message-State: AKaTC00qFTCAbD/CZ4I4poNEMZ8s5LXqH84/CtQxkP7OLZi1HGTPfsiEY9FEPLy6MlaqpYpPZi8= X-Received: by 10.25.200.68 with SMTP id y65mr15439735lff.92.1480605978424; Thu, 01 Dec 2016 07:26:18 -0800 (PST) Received: from localhost.localdomain (ppp91-77-165-188.pppoe.mtu-net.ru. [91.77.165.188]) by smtp.gmail.com with ESMTPSA id i129sm118166lfd.8.2016.12.01.07.26.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 01 Dec 2016 07:26:17 -0800 (PST) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Thu, 1 Dec 2016 18:26:00 +0300 Message-Id: <1480605960-11627-1-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.7.1.250.gff4ea60 Subject: [lng-odp] [API-NEXT PATCH] linux-gen: pool add missing eof for error prints 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" During debug found missing end of lines in debug prints. Signed-off-by: Maxim Uvarov --- platform/linux-generic/odp_pool.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) -- 2.7.1.250.gff4ea60 diff --git a/platform/linux-generic/odp_pool.c b/platform/linux-generic/odp_pool.c index 4be3827..5ae37e1 100644 --- a/platform/linux-generic/odp_pool.c +++ b/platform/linux-generic/odp_pool.c @@ -281,11 +281,11 @@ static odp_pool_t pool_create(const char *name, odp_pool_param_t *params, uint32_t max_len, max_seg_len; uint32_t ring_size; int name_len; - const char *postfix = "_uarea"; + const char *postfix = "_uarea\n"; char uarea_name[ODP_POOL_NAME_LEN + sizeof(postfix)]; if (params == NULL) { - ODP_ERR("No params"); + ODP_ERR("No params\n"); return ODP_POOL_INVALID; } @@ -300,7 +300,7 @@ static odp_pool_t pool_create(const char *name, odp_pool_param_t *params, /* Validate requested buffer alignment */ if (align > ODP_CONFIG_BUFFER_ALIGN_MAX || align != ODP_ALIGN_ROUNDDOWN_POWER_2(align, align)) { - ODP_ERR("Bad align requirement"); + ODP_ERR("Bad align requirement\n"); return ODP_POOL_INVALID; } @@ -332,7 +332,7 @@ static odp_pool_t pool_create(const char *name, odp_pool_param_t *params, break; default: - ODP_ERR("Bad pool type"); + ODP_ERR("Bad pool type\n"); return ODP_POOL_INVALID; } @@ -342,7 +342,7 @@ static odp_pool_t pool_create(const char *name, odp_pool_param_t *params, pool = reserve_pool(); if (pool == NULL) { - ODP_ERR("No more free pools"); + ODP_ERR("No more free pools\n"); return ODP_POOL_INVALID; } @@ -390,7 +390,7 @@ static odp_pool_t pool_create(const char *name, odp_pool_param_t *params, pool->shm = shm; if (shm == ODP_SHM_INVALID) { - ODP_ERR("Shm reserve failed"); + ODP_ERR("Shm reserve failed\n"); goto error; } @@ -404,7 +404,7 @@ static odp_pool_t pool_create(const char *name, odp_pool_param_t *params, pool->uarea_shm = shm; if (shm == ODP_SHM_INVALID) { - ODP_ERR("Shm reserve failed (uarea)"); + ODP_ERR("Shm reserve failed (uarea)\n"); goto error; }