From patchwork Wed Nov 7 13:12:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 150387 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp5151844ljp; Wed, 7 Nov 2018 05:12:42 -0800 (PST) X-Google-Smtp-Source: AJdET5dlhWT9ZjVU7ZoDJRzYB9f+Z7cy+wPmafTzxfSNAl60QoAbDVwTc4CHumGk9sucisPklIW7 X-Received: by 2002:a17:902:509:: with SMTP id 9-v6mr167457plf.3.1541596362271; Wed, 07 Nov 2018 05:12:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541596362; cv=none; d=google.com; s=arc-20160816; b=jl/AxjJU3HTFgiVi5xeh1nLhhotgsICQiieML/F33R2ZqeTrI6htAxfM/fxsv8MIsm m7FEYieekBg2n5fop1eXpHUg3Nxxsuoxge2miZVqFZp5Jw9dwuhxGZssCoBC/2MDGb+M XQRFJ1E3ZjSSS2RExvl40mTM+1rmIWAi7+yjNHvRl+eEQFiuZU2GtsrVBRx++uBZxeL2 4DH5+yintCZ7xLE7vMjajFk1uW/7/FBZzQk2ChYyxM13M1z0jl9R3wIturhxTFM8C/RR xQXgNZAGpR+f1rhtm3S5CNjVnCOvAQFMQ3Ykf76/q3H6EhMziSUwPO+OZK5byq3y+ENB ObCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:dkim-signature:delivered-to:sender:list-help:list-post :list-archive:list-subscribe:list-unsubscribe:list-id:precedence :mailing-list:dkim-signature:domainkey-signature; bh=ihfNRo4/tsIAsC5AUSmjDOF2i32zobrUFD6X2S3QhTY=; b=mVlKJesjG4L4Qf9Aa/kIF/U3NqGbsvNCMHJdLjROp/6Qkt4hz4Tpoznf6eEXBfXyEX DrL443iMIfzsQVk3qSNTRgp03nhzAPYzBxZteM3LusbjTESSx1osAYiBi4FdZaz9gOnF 8wWtAWF7b91T2Do0jAcFIu0jpF+MYKW0bKYzF9yCrZChnPnr8A9CcumBD4+djFEjyAg7 DBzccC4/+q6OE0GKJQtCEFoDQ9iPM9BFBFlJy7wgHOjg9bz4mLEqtFuNwXpLq2cfiuec rxBTTZoEvwXKNssgatv8d0HOBxfksEU1gfuneLbuFIem5zqQzUSz3s6VR1BdnVYfOw06 935A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=riK1LWKc; dkim=pass header.i=@linaro.org header.s=google header.b=kU6yvQUR; spf=pass (google.com: domain of libc-alpha-return-97016-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="libc-alpha-return-97016-patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id u72si553967pgc.360.2018.11.07.05.12.41 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Nov 2018 05:12:42 -0800 (PST) Received-SPF: pass (google.com: domain of libc-alpha-return-97016-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=riK1LWKc; dkim=pass header.i=@linaro.org header.s=google header.b=kU6yvQUR; spf=pass (google.com: domain of libc-alpha-return-97016-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="libc-alpha-return-97016-patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=default; b=a/S 5+4k/dJqqlSY8D0LMZgTzr14zauuSM0AFoMB8j5RQPJgfl/40uddfQlUwUVEy+pT uIiHoqfZMBq6AtNID6QCS0vZ48q6wvYQnhw9V9tM1kJAgJzalm44Ud73Tky1HAxc NRXiVvTMYyu5ib3ijF/Yq47kFhb9sp8SyfX46kWs= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:mime-version :content-type:content-transfer-encoding; s=default; bh=fDFGbLcHH rLL5FYpJlOpq2spkCY=; b=riK1LWKcLE5GQDSG0rX+S+z//Ir7yJP95Ga7ddVV3 qfwRiS+DUiaXRqYphRBNiiGSITDhMLNQrTWGbPF80I/mXkLw0Bx6e0PY7BiMNkxh cwXPy+OKl1HP8yfe8SMnY7HJznzceTy0diFuGrtUcY4lulF8tSLvSdri4AZZvDZh gg= Received: (qmail 49191 invoked by alias); 7 Nov 2018 13:12:33 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 49172 invoked by uid 89); 7 Nov 2018 13:12:32 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.9 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=HContent-Transfer-Encoding:8bit X-HELO: mail-qk1-f179.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=ihfNRo4/tsIAsC5AUSmjDOF2i32zobrUFD6X2S3QhTY=; b=kU6yvQURhpSQrzVMh+n4W2Ct9yIC3NrA/jCP5fwqV9s8cCGesIoOl+GgvBb1L/s4lq 5Oxz6cy6QwAPkBqNZQNA60PYaURvOWeHJZ4TjADJdw0O6Ut3VhusRXbN1m0cW2/SY7Dq 15tlNH6qOkigtgn5BQ/bAJCINwfTwVjGU4pJE= Return-Path: From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [COMMITTED] support: Fix printf format for TEST_COMPARE_STRING Date: Wed, 7 Nov 2018 11:12:24 -0200 Message-Id: <20181107131224.30856-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 Fix the following on 32 bits targets: support_test_compare_string.c: In function ‘support_test_compare_string’: support_test_compare_string.c:80:37: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘size_t’ {aka ‘unsigned int’} [-Werror=format=] printf (" string length: %lu bytes\n", left_length); ~~^ ~~~~~~~~~~~ %u Checked on arm-linux-gnueabihf. * support/support_test_compare_string.c (support_test_compare_string): Fix printf format. --- ChangeLog | 5 +++++ support/support_test_compare_string.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/support/support_test_compare_string.c b/support/support_test_compare_string.c index 9958aaeec1..a76ba8eda7 100644 --- a/support/support_test_compare_string.c +++ b/support/support_test_compare_string.c @@ -77,7 +77,7 @@ support_test_compare_string (const char *left, const char *right, support_record_failure (); printf ("%s:%d: error: blob comparison failed\n", file, line); if (left_length == right_length && right != NULL && left != NULL) - printf (" string length: %lu bytes\n", left_length); + printf (" string length: %zu bytes\n", left_length); else { report_length ("left", left, left_length);