From patchwork Thu Nov 20 11:53:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ola Liljedahl X-Patchwork-Id: 41236 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3F56A23C27 for ; Thu, 20 Nov 2014 11:54:47 +0000 (UTC) Received: by mail-lb0-f198.google.com with SMTP id p9sf830289lbv.9 for ; Thu, 20 Nov 2014 03:54:46 -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=nUdQcSKbpCTm7lXlr+21hdse3ko8QDAEToeYh44kkjI=; b=LlQ9dR6hZBW2cVb5ExpjLRNa3I5E9V1ZASpxL5nBCwg7q7onmIBeqZsy8VUi1/X0C8 N9WS2AsBIUBAJud5dBnN7VX8Dfjsjgyf2kFaEoOqSxgCGQSpyxjWIJ4M0kZBBCxIdIPt wUSsiQm9/iaHIl7bhpoMpG0LflH1T9qL7kaSWr1U8qULwRwGXtCTLdGCCiPDpxqhQZae CMj4YOl9p0oqFbVRDzj0NnNqDccdeu6kj6mCaGJDz/D4nhbv/gAQzqo/8oOsNdpcPbT6 fIxBehrrB422ZkOhYGfBFfkbwKpF8/4+4kMGOi0F9t6wz2PWiCnBHqiZdPDPWm7L91kR qT6g== X-Gm-Message-State: ALoCoQnTCB0P6xfq2eHD4BhvqS8mBIPAYlj1gHVoEcgfEUTn5XqXTH6oN3iLvWI4t04yVI1qIjZ2 X-Received: by 10.181.13.147 with SMTP id ey19mr7185611wid.2.1416484486225; Thu, 20 Nov 2014 03:54:46 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.28.193 with SMTP id d1ls51571lah.85.gmail; Thu, 20 Nov 2014 03:54:46 -0800 (PST) X-Received: by 10.152.30.70 with SMTP id q6mr16512725lah.6.1416484485973; Thu, 20 Nov 2014 03:54:45 -0800 (PST) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com. [209.85.217.182]) by mx.google.com with ESMTPS id tl10si1887728lbb.131.2014.11.20.03.54.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Nov 2014 03:54:45 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.182 as permitted sender) client-ip=209.85.217.182; Received: by mail-lb0-f182.google.com with SMTP id f15so2334627lbj.13 for ; Thu, 20 Nov 2014 03:54:45 -0800 (PST) X-Received: by 10.153.7.170 with SMTP id dd10mr10826630lad.44.1416484485896; Thu, 20 Nov 2014 03:54:45 -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.184.201 with SMTP id ew9csp246812lbc; Thu, 20 Nov 2014 03:54:45 -0800 (PST) X-Received: by 10.140.105.164 with SMTP id c33mr58068204qgf.11.1416484484591; Thu, 20 Nov 2014 03:54:44 -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 k9si2517729qaf.20.2014.11.20.03.54.43 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 20 Nov 2014 03:54:44 -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 1XrQJu-00019i-3e; Thu, 20 Nov 2014 11:54:42 +0000 Received: from mail-lb0-f173.google.com ([209.85.217.173]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XrQJU-00015R-Ls for lng-odp@lists.linaro.org; Thu, 20 Nov 2014 11:54:16 +0000 Received: by mail-lb0-f173.google.com with SMTP id n15so2141883lbi.18 for ; Thu, 20 Nov 2014 03:54:11 -0800 (PST) X-Received: by 10.152.43.80 with SMTP id u16mr10961582lal.53.1416484451134; Thu, 20 Nov 2014 03:54:11 -0800 (PST) Received: from macmini.lan (84-217-193-77.tn.glocalnet.net. [84.217.193.77]) by mx.google.com with ESMTPSA id bb3sm534566lab.7.2014.11.20.03.54.09 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 20 Nov 2014 03:54:10 -0800 (PST) From: Ola Liljedahl To: lng-odp@lists.linaro.org Date: Thu, 20 Nov 2014 12:53:47 +0100 Message-Id: <1416484428-23849-7-git-send-email-ola.liljedahl@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1416484428-23849-1-git-send-email-ola.liljedahl@linaro.org> References: <1416484428-23849-1-git-send-email-ola.liljedahl@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH 6/7] linux-generic: odp_buffer.c: use odp_atomic.h 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: ola.liljedahl@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.182 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: Ola Liljedahl --- platform/linux-generic/odp_buffer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/linux-generic/odp_buffer.c b/platform/linux-generic/odp_buffer.c index e54e0e7..4646486 100644 --- a/platform/linux-generic/odp_buffer.c +++ b/platform/linux-generic/odp_buffer.c @@ -73,7 +73,8 @@ int odp_buffer_snprint(char *str, size_t n, odp_buffer_t buf) len += snprintf(&str[len], n-len, " cur_offset %zu\n", hdr->cur_offset); len += snprintf(&str[len], n-len, - " ref_count %i\n", hdr->ref_count); + " ref_count %i\n", + odp_atomic_load_u32(&hdr->ref_count)); len += snprintf(&str[len], n-len, " type %i\n", hdr->type); len += snprintf(&str[len], n-len,