From patchwork Thu Dec 1 15:59:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 86094 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp757755qgi; Thu, 1 Dec 2016 08:00:00 -0800 (PST) X-Received: by 10.200.47.229 with SMTP id m34mr34138157qta.218.1480608000759; Thu, 01 Dec 2016 08:00:00 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id h127si474100qke.33.2016.12.01.08.00.00; Thu, 01 Dec 2016 08:00:00 -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 5E81B62D78; Thu, 1 Dec 2016 16:00:00 +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 172F960D71; Thu, 1 Dec 2016 15:59:55 +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 A982B62D72; Thu, 1 Dec 2016 15:59:52 +0000 (UTC) Received: from mail-lf0-f50.google.com (mail-lf0-f50.google.com [209.85.215.50]) by lists.linaro.org (Postfix) with ESMTPS id A02AC60BED for ; Thu, 1 Dec 2016 15:59:51 +0000 (UTC) Received: by mail-lf0-f50.google.com with SMTP id c13so174670677lfg.0 for ; Thu, 01 Dec 2016 07:59:51 -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=fIa4zaXRhi9KWC0137MN40Bpntw8eP66tWxDlVNPjK0=; b=TFaT/nEyBFo8G/InVeeh7t2o1LDg1OPweTQ37J+wjdylm1PuJhqzUphcWtcfQ+NJh6 MfflpdxDsGubo8dkAGoqwJH1qimbDMgOFkDIhTXlgJSfUlvFkxK0zYPYoPBA0rV7meMZ ctqXW+QeTEDImaJppt/kXU+Y66JepEbT+q4w6tGiNSWY2Oiu2LfR1au/AJ3QdrqzvkiJ T6oGhXucK/iXo1L4et9qPa64DAWMYvWOlnTilXYAPq4ad488rOaRg84Wj59VI2LBago0 AFEJ/rWCtY/CW6AOSs/kaZHERdGBhTEJhK5JKyexp0I7M41qbM8E14hC/lfVjwnTLnCc SMpQ== X-Gm-Message-State: AKaTC03yeFUN/7l+Uyxf4KJHxswbq1R3YGbjSKCrl8TuKqVZp/hPVlK2o7tgLdv+p/r+Levf8XE= X-Received: by 10.46.75.10 with SMTP id y10mr19705016lja.65.1480607990409; Thu, 01 Dec 2016 07:59:50 -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 m193sm124023lfm.47.2016.12.01.07.59.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 01 Dec 2016 07:59:49 -0800 (PST) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Thu, 1 Dec 2016 18:59:33 +0300 Message-Id: <1480607973-11866-1-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.7.1.250.gff4ea60 Subject: [lng-odp] [API-NEXT PATCHv2] 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 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) -- 2.7.1.250.gff4ea60 Reviewed-by: Bill Fischofer diff --git a/platform/linux-generic/odp_pool.c b/platform/linux-generic/odp_pool.c index 4be3827..f63efb6 100644 --- a/platform/linux-generic/odp_pool.c +++ b/platform/linux-generic/odp_pool.c @@ -285,7 +285,7 @@ static odp_pool_t pool_create(const char *name, odp_pool_param_t *params, 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; }