From patchwork Tue May 13 14:05:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Hsu X-Patchwork-Id: 30052 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f70.google.com (mail-oa0-f70.google.com [209.85.219.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id F305E20446 for ; Tue, 13 May 2014 14:06:29 +0000 (UTC) Received: by mail-oa0-f70.google.com with SMTP id i4sf1765076oah.9 for ; Tue, 13 May 2014 07:06:29 -0700 (PDT) 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:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=IbrfNtuzWpmXNCQczImvQBQBD0F8RtLKtoKSGPkqEJs=; b=VrFIlkV2VzJbShFgznXsaaoToYpD2Uofjg0CIUJ5LD7hHgKP6SWQ08AJosk42McLv4 qn0mr2wKg/XE05fiIdhWRQFAe3OefPxCbUqHO5ivelX7apMKEbwY9HVXRp6r/Wh8DYNe gs2m9ROvAoJFBNunX/gSECTtvMzwKANVREjzHVIkkMr9udZkCwqcCbf5NWtclv8x0zv+ p2ThuUl6rjPmTN0dedd1ho5Ypaax3GIBzfc/GFCxdyxTyfce99LBLArb/nsLhUIxwLkE zx8QjP9mXx9dxuNAefCjynn3dGIUkbP8CsLutIAfg6Yfyh+B/6kbyAk81Y30qOMdro4p XqAQ== X-Gm-Message-State: ALoCoQlUqJ5nkoIwt9cT2GUBtEKeA1mDtMbhzO0dXemXBFto48fg99JVCBVIQhnPWSSdJ8IZzQG0 X-Received: by 10.50.73.74 with SMTP id j10mr14427186igv.1.1399989989217; Tue, 13 May 2014 07:06:29 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.46.53 with SMTP id j50ls1943169qga.67.gmail; Tue, 13 May 2014 07:06:29 -0700 (PDT) X-Received: by 10.220.253.132 with SMTP id na4mr671119vcb.39.1399989989109; Tue, 13 May 2014 07:06:29 -0700 (PDT) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) by mx.google.com with ESMTPS id gq7si2665727vdc.68.2014.05.13.07.06.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 13 May 2014 07:06:29 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.178 as permitted sender) client-ip=209.85.220.178; Received: by mail-vc0-f178.google.com with SMTP id hq16so501102vcb.23 for ; Tue, 13 May 2014 07:06:29 -0700 (PDT) X-Received: by 10.220.191.134 with SMTP id dm6mr29554369vcb.16.1399989989011; Tue, 13 May 2014 07:06:29 -0700 (PDT) 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.220.221.72 with SMTP id ib8csp153971vcb; Tue, 13 May 2014 07:06:28 -0700 (PDT) X-Received: by 10.140.88.241 with SMTP id t104mr44643911qgd.29.1399989988353; Tue, 13 May 2014 07:06:28 -0700 (PDT) Received: from ip-10-141-164-156.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id e7si7775513qai.203.2014.05.13.07.06.27 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 13 May 2014 07:06:28 -0700 (PDT) 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-141-164-156.ec2.internal) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1WkDKq-00011X-Kk; Tue, 13 May 2014 14:05:36 +0000 Received: from mail-vc0-f176.google.com ([209.85.220.176]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1WkDKV-0000zq-7R for lng-odp@lists.linaro.org; Tue, 13 May 2014 14:05:15 +0000 Received: by mail-vc0-f176.google.com with SMTP id lg15so495427vcb.35 for ; Tue, 13 May 2014 07:06:00 -0700 (PDT) X-Received: by 10.52.249.76 with SMTP id ys12mr400645vdc.63.1399989960104; Tue, 13 May 2014 07:06:00 -0700 (PDT) Received: from localhost.localdomain (118-160-121-90.dynamic.hinet.net. [118.160.121.90]) by mx.google.com with ESMTPSA id cx2sm28682949vdc.14.2014.05.13.07.05.58 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 13 May 2014 07:05:59 -0700 (PDT) From: Vincent Hsu To: lng-odp@lists.linaro.org Date: Tue, 13 May 2014 22:05:47 +0800 Message-Id: <1399989949-14234-4-git-send-email-vincent.hsu@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1399989949-14234-1-git-send-email-vincent.hsu@linaro.org> References: <1399989949-14234-1-git-send-email-vincent.hsu@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH 3/4] specifiy printf argument formats 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: vincent.hsu@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.220.178 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 --- platform/linux-generic/source/odp_buffer.c | 2 +- platform/linux-generic/source/odp_buffer_pool.c | 2 +- platform/linux-generic/source/odp_timer.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/linux-generic/source/odp_buffer.c b/platform/linux-generic/source/odp_buffer.c index afbe96a..9312a18 100644 --- a/platform/linux-generic/source/odp_buffer.c +++ b/platform/linux-generic/source/odp_buffer.c @@ -72,7 +72,7 @@ int odp_buffer_snprint(char *str, size_t n, odp_buffer_t buf) len += snprintf(&str[len], n-len, "Buffer\n"); len += snprintf(&str[len], n-len, - " pool %i\n", hdr->pool); + " pool %i\n", (int) hdr->pool); len += snprintf(&str[len], n-len, " index %"PRIu32"\n", hdr->index); len += snprintf(&str[len], n-len, diff --git a/platform/linux-generic/source/odp_buffer_pool.c b/platform/linux-generic/source/odp_buffer_pool.c index 90214ba..26d8eda 100644 --- a/platform/linux-generic/source/odp_buffer_pool.c +++ b/platform/linux-generic/source/odp_buffer_pool.c @@ -462,7 +462,7 @@ void odp_buffer_pool_print(odp_buffer_pool_t pool_id) printf("Pool info\n"); printf("---------\n"); - printf(" pool %i\n", pool->s.pool); + printf(" pool %i\n", (int) pool->s.pool); printf(" name %s\n", pool->s.name); printf(" pool base %p\n", pool->s.pool_base_addr); printf(" buf base 0x%"PRIxPTR"\n", pool->s.buf_base); diff --git a/platform/linux-generic/source/odp_timer.c b/platform/linux-generic/source/odp_timer.c index 6fb5025..745fa3a 100644 --- a/platform/linux-generic/source/odp_timer.c +++ b/platform/linux-generic/source/odp_timer.c @@ -133,7 +133,7 @@ int odp_timer_cancel_tmo(odp_timer_t timer, odp_timer_tmo_t tmo) /* search and delete tmo from tick list */ if (find_and_del_tmo(&tick->list, tmo) != 0) { odp_spinlock_unlock(&tick->lock); - ODP_DBG("Couldn't find the tmo (%d) in tick list\n", tmo); + ODP_DBG("Couldn't find the tmo (%d) in tick list\n", (int) tmo); return -1; } odp_spinlock_unlock(&tick->lock);