From patchwork Fri Feb 20 17:27:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 44867 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f71.google.com (mail-wg0-f71.google.com [74.125.82.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D22C521561 for ; Fri, 20 Feb 2015 17:28:04 +0000 (UTC) Received: by mail-wg0-f71.google.com with SMTP id b13sf10054399wgh.2 for ; Fri, 20 Feb 2015 09:28:04 -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=SVa8A22oVPjwS6i71wGCGfZzQcU+9zYT+ZoVaskSiOM=; b=OFGk85Um9JAUhZt/Z9xH18YXxaplfOPVbcvkCUVOrZT3C5LFXx7iV9zVEZ0fA4J1ld eDvRhDSrANjHBOscsMxA7NtIJBY3+EqYwP685959hLxvlmzYwkZ9N1wz4jVDoTNLqrXx oi9j+HPlAKk7ae7aQagXrKZ8T944np1AEYZ+IJ9rL7PEhK1kHu831oUqHbQtDPB+4rEc QVkRcjfLMGh2uUjatcXGVxyiNSMo6Pkow0JnduWdYgm9WlKx544J79p7z+ZwcHc/eFYv jNRxA375gB69Cb1JDiyil2FeU0K09MS45Pyt4L4afZmXbPmqS/GWipfUqmhMuadHaMqK YBPg== X-Gm-Message-State: ALoCoQnFLEt8i7ZL9+Cv/O9nIph3oeM+uPbG+G4xNOIJ+epnxi2x6I3wy6FnJ5DICiiOnii8BQOV X-Received: by 10.180.87.166 with SMTP id az6mr517097wib.1.1424453284144; Fri, 20 Feb 2015 09:28:04 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.179.139 with SMTP id dg11ls250260lac.62.gmail; Fri, 20 Feb 2015 09:28:03 -0800 (PST) X-Received: by 10.112.146.66 with SMTP id ta2mr9847630lbb.0.1424453283913; Fri, 20 Feb 2015 09:28:03 -0800 (PST) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com. [209.85.217.177]) by mx.google.com with ESMTPS id od4si17793798lbb.27.2015.02.20.09.28.03 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Feb 2015 09:28:03 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) client-ip=209.85.217.177; Received: by lbjb6 with SMTP id b6so7692629lbj.2 for ; Fri, 20 Feb 2015 09:28:03 -0800 (PST) X-Received: by 10.152.88.4 with SMTP id bc4mr9528794lab.86.1424453283459; Fri, 20 Feb 2015 09:28:03 -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 h5csp18326lbj; Fri, 20 Feb 2015 09:28:02 -0800 (PST) X-Received: by 10.140.217.200 with SMTP id n191mr25567912qhb.29.1424453282066; Fri, 20 Feb 2015 09:28:02 -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 g196si18202557qhc.95.2015.02.20.09.27.31 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 20 Feb 2015 09:28:02 -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 1YOrMO-0008JG-QP; Fri, 20 Feb 2015 17:27:28 +0000 Received: from mail-qa0-f52.google.com ([209.85.216.52]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YOrMJ-0008J2-LZ for lng-odp@lists.linaro.org; Fri, 20 Feb 2015 17:27:23 +0000 Received: by mail-qa0-f52.google.com with SMTP id v10so13357817qac.11 for ; Fri, 20 Feb 2015 09:27:18 -0800 (PST) X-Received: by 10.140.202.17 with SMTP id x17mr26542862qha.50.1424453238465; Fri, 20 Feb 2015 09:27:18 -0800 (PST) Received: from mike-desktop.?.holmesfamily.ws (c-98-221-136-245.hsd1.nj.comcast.net. [98.221.136.245]) by mx.google.com with ESMTPSA id q5sm4636558qai.47.2015.02.20.09.27.17 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 20 Feb 2015 09:27:17 -0800 (PST) From: Mike Holmes To: lng-odp@lists.linaro.org Date: Fri, 20 Feb 2015 12:27:11 -0500 Message-Id: <1424453231-28250-1-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 2.1.0 X-Topics: patch Subject: [lng-odp] [PATCH] validation: odp_init_log: fix clang format string error 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: mike.holmes@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.177 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 odp_init_log.c:75:23: error: format string is not a string literal [-Werror,-Wformat-nonliteral] r = vfprintf(stderr, fmt, args); Fixes https://bugs.linaro.org/show_bug.cgi?id=1248 Signed-off-by: Mike Holmes Reviewed-by: Taras Kondratiuk --- Depends on "api: hints: add printf format attribute" test/validation/odp_init_log.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/validation/odp_init_log.c b/test/validation/odp_init_log.c index c072147..275d343 100644 --- a/test/validation/odp_init_log.c +++ b/test/validation/odp_init_log.c @@ -10,6 +10,7 @@ int replacement_logging_used; +ODP_PRINTF_FORMAT(2, 3) static int odp_init_log(odp_log_level_e level , const char *fmt, ...); static void test_odp_init_global_replace_log(void)