From patchwork Mon Dec 22 17:18:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 42537 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 54A0E25BA1 for ; Mon, 22 Dec 2014 17:18:33 +0000 (UTC) Received: by mail-la0-f71.google.com with SMTP id q1sf3147722lam.6 for ; Mon, 22 Dec 2014 09:18:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:subject :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=0yNlR4/PXbuDrZd8geKe1qZnk8w5Lluf9JOscFHJM9k=; b=jXzyV07RktL9ANtG631QQuVyn8qgcqdjVJ4XNHIVFdT8kN4KIlj89TQfDH5rSLnByk p1yNj/NvUN7nxUGLjddOGA51OgOGKxVj9Pb0kNyWIX2GdCHq/BSfuhaFvk42IqOdIU5H AibKcGyhhsXKHqUrl2oNXmC4RIf9qRPin64qoULiuzonmK9B4zn0/07YE76ZhHxT9YVg gUyVKqUsxeSkjW1U2aMQ5nATMta1L6FGTeOhVrV1FAw2ayvZNyf84FcCSw8OZ1m0FWkO Jk9/Bh+cMfS8V02AfXijqtTK+82z6dnTuKHawZGADPpqVuzesHGLwwe2KnlmcYLmvgPc 4OnQ== X-Gm-Message-State: ALoCoQm5cPUwQzKYIWSHz1oFC4qEm3y/ZAsaQ3qcP8I8/g8S1VbVsIOeQ8BBWt5asXSwvLHgcVwY X-Received: by 10.180.108.101 with SMTP id hj5mr2265615wib.3.1419268711884; Mon, 22 Dec 2014 09:18:31 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.88.99 with SMTP id bf3ls1712011lab.13.gmail; Mon, 22 Dec 2014 09:18:31 -0800 (PST) X-Received: by 10.152.43.49 with SMTP id t17mr23633109lal.52.1419268711722; Mon, 22 Dec 2014 09:18:31 -0800 (PST) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com. [209.85.217.181]) by mx.google.com with ESMTPS id vh9si19007293lac.134.2014.12.22.09.18.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 22 Dec 2014 09:18:31 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) client-ip=209.85.217.181; Received: by mail-lb0-f181.google.com with SMTP id l4so4105756lbv.40 for ; Mon, 22 Dec 2014 09:18:31 -0800 (PST) X-Received: by 10.152.23.38 with SMTP id j6mr23136676laf.81.1419268711586; Mon, 22 Dec 2014 09:18:31 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.142.69 with SMTP id ru5csp1090876lbb; Mon, 22 Dec 2014 09:18:30 -0800 (PST) X-Received: by 10.140.42.135 with SMTP id c7mr22511753qga.63.1419268709981; Mon, 22 Dec 2014 09:18:29 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id c9si12998061qam.45.2014.12.22.09.18.26 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 22 Dec 2014 09:18:29 -0800 (PST) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Y36ci-0006Nk-B1; Mon, 22 Dec 2014 17:18:24 +0000 Received: from mail-la0-f45.google.com ([209.85.215.45]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Y36cb-0006MT-Hr for lng-odp@lists.linaro.org; Mon, 22 Dec 2014 17:18:17 +0000 Received: by mail-la0-f45.google.com with SMTP id gq15so4376939lab.18 for ; Mon, 22 Dec 2014 09:18:11 -0800 (PST) X-Received: by 10.152.234.140 with SMTP id ue12mr22430138lac.78.1419268691688; Mon, 22 Dec 2014 09:18:11 -0800 (PST) Received: from localhost.localdomain (ppp91-76-163-205.pppoe.mtu-net.ru. [91.76.163.205]) by mx.google.com with ESMTPSA id lh6sm3572151lab.49.2014.12.22.09.18.09 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 22 Dec 2014 09:18:10 -0800 (PST) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Mon, 22 Dec 2014 20:18:05 +0300 Message-Id: <1419268685-13886-1-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.8.5.1.163.gd7aced9 X-Topics: patch Subject: [lng-odp] [PATCH] validation: do not print functions name and files X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: lng-odp-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: maxim.uvarov@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Current test output is too long and even prints data from empty prints: odp_buffer_pool.c:91:odp_buffer_pool_init_global(): pool_entry_s size 256 odp_buffer_pool.c:92:odp_buffer_pool_init_global(): pool_entry_t size 256 odp_buffer_pool.c:93:odp_buffer_pool_init_global(): odp_buffer_hdr_t size 112 odp_buffer_pool.c:94:odp_buffer_pool_init_global(): Remove file and function names prefixes for validation tests. Signed-off-by: Maxim Uvarov --- test/validation/common/odp_cunit_common.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/test/validation/common/odp_cunit_common.c b/test/validation/common/odp_cunit_common.c index 2fab033..cefeaf0 100644 --- a/test/validation/common/odp_cunit_common.c +++ b/test/validation/common/odp_cunit_common.c @@ -14,6 +14,9 @@ #include #include #include +#include +#include + /* Globals */ static odph_linux_pthread_t thread_tbl[MAX_WORKERS]; @@ -41,6 +44,25 @@ __attribute__((__weak__)) int tests_global_init(void) return 0; } +int odp_override_log(odp_log_level_e level __attribute__((__unused__)), + const char *fmt, ...) +{ + va_list args; + int r; + + va_start(args, fmt); + + /* Skip __FILE__, __LINE__, __func__ output */ + va_arg(args, char *); + va_arg(args, int); + va_arg(args, char *); + + r = vfprintf(stderr, " ", args); + va_end(args); + + return r; +} + int main(void) { int ret;