From patchwork Wed Feb 4 12:00:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taras Kondratiuk X-Patchwork-Id: 44332 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 C6D6A21513 for ; Wed, 4 Feb 2015 12:00:55 +0000 (UTC) Received: by mail-la0-f71.google.com with SMTP id hs14sf1026735lab.2 for ; Wed, 04 Feb 2015 04:00:54 -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:in-reply-to :references: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=iGHZdJ8yaBUIGbea4JFmxqKdq1q3Ul+191EYVrU/208=; b=W0pq6GMA3mPKwe9BvpfmHbeGLubJ3hmI0rNwtut5RfU1Nl6Eu2aBeSO5yK796IYD+c VwuDomhSO9qhwNv2R7K3dc8HPyckiDNBDf2vYTtKlQ1btgzK/z7XMzlEI9gLW2xdCz3w tyksZzlYh6SsJOl7LNsBuN6i8MCuPVytY/wYS0Ep1sfzZ8iykrbgSPMqSShZnHSQCkRq 3ZeqfGOK+7CUv+Zhjeg8z4HDkg31JjfDeVJ6Xm4bdVvSuonT4ovHqawbMQn1z9LQKzAF V2FVT03lCyTRgM08zsU+4bigm8HaWoxQR7C9ZWAjumdpmt4qbNmr6Kf32iaTw7f34z0D Ddtw== X-Gm-Message-State: ALoCoQlCFpAYJdycleRpe4o88Hn9K4KK5seWTUIUTRFauPcwZpOu7S+CYyLQSv8e2OtFcInkPknL X-Received: by 10.112.175.10 with SMTP id bw10mr3846166lbc.7.1423051254752; Wed, 04 Feb 2015 04:00:54 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.7.226 with SMTP id m2ls23951laa.82.gmail; Wed, 04 Feb 2015 04:00:54 -0800 (PST) X-Received: by 10.152.19.129 with SMTP id f1mr29907184lae.40.1423051254430; Wed, 04 Feb 2015 04:00:54 -0800 (PST) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com. [209.85.215.47]) by mx.google.com with ESMTPS id us19si1176325lbb.35.2015.02.04.04.00.54 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Feb 2015 04:00:54 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) client-ip=209.85.215.47; Received: by mail-la0-f47.google.com with SMTP id hz20so1102809lab.6 for ; Wed, 04 Feb 2015 04:00:54 -0800 (PST) X-Received: by 10.112.135.196 with SMTP id pu4mr2572968lbb.41.1423051254323; Wed, 04 Feb 2015 04:00:54 -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.35.133 with SMTP id h5csp439229lbj; Wed, 4 Feb 2015 04:00:52 -0800 (PST) X-Received: by 10.140.85.211 with SMTP id n77mr59994909qgd.17.1423051252073; Wed, 04 Feb 2015 04:00:52 -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 g6si1685904qaz.115.2015.02.04.04.00.50 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 04 Feb 2015 04:00:52 -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 1YIydV-0004Fj-7E; Wed, 04 Feb 2015 12:00:49 +0000 Received: from mail-lb0-f181.google.com ([209.85.217.181]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YIydF-0004A6-GU for lng-odp@lists.linaro.org; Wed, 04 Feb 2015 12:00:33 +0000 Received: by mail-lb0-f181.google.com with SMTP id u10so1034071lbd.12 for ; Wed, 04 Feb 2015 04:00:28 -0800 (PST) X-Received: by 10.152.6.195 with SMTP id d3mr26009405laa.36.1423051228007; Wed, 04 Feb 2015 04:00:28 -0800 (PST) Received: from uglx0153363.synapse.com ([195.238.92.128]) by mx.google.com with ESMTPSA id z15sm312379lbn.48.2015.02.04.04.00.27 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 04 Feb 2015 04:00:27 -0800 (PST) From: Taras Kondratiuk To: lng-odp@lists.linaro.org Date: Wed, 4 Feb 2015 14:00:12 +0200 Message-Id: <1423051213-20795-5-git-send-email-taras.kondratiuk@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1423051213-20795-1-git-send-email-taras.kondratiuk@linaro.org> References: <1423051213-20795-1-git-send-email-taras.kondratiuk@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH 4/5] api: hints: add printf format attribute 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: taras.kondratiuk@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.215.47 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 Signed-off-by: Taras Kondratiuk Reviewed-by: Mike Holmes --- include/odp/api/hints.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/odp/api/hints.h b/include/odp/api/hints.h index a7aa90e..d6bf723 100644 --- a/include/odp/api/hints.h +++ b/include/odp/api/hints.h @@ -46,6 +46,11 @@ extern "C" { #define ODP_COLD_CODE __attribute__((__cold__)) /** + * Printf format attribute + */ +#define ODP_PRINTF_FORMAT(x, y) __attribute__((format(printf, (x), (y)))) + +/** * Branch likely taken */ #define odp_likely(x) __builtin_expect((x), 1)