Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.5 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2638BC432C0 for ; Wed, 20 Nov 2019 04:30:57 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A277F2240D for ; Wed, 20 Nov 2019 04:30:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="cre70TGj"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="LBjJhoQv" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A277F2240D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 0E13A1699; Wed, 20 Nov 2019 05:30:04 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 0E13A1699 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1574224254; bh=T+aEcyVj9BjZcVxPlXw1L4XHVWUMtS2+tLFb0VoUphQ=; h=From:To:Date:In-Reply-To:References:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=cre70TGjGlTSFTZSJPmPeEii5Em0qo2yFlmU5hS7x5qOPALB3hqG79O6I5mktzGN5 g/VX9H42p1TU2Yd6xHkkstUhPMefSWef45LK6yPaxH9loaKTZ6/jBW4j6PADmJR0ph bIgGUi2fmCbSr8kwkP/62QuyQCan9fJbAky/TsmI= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 87204F8014A; Wed, 20 Nov 2019 05:29:10 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 2A457F8014A; Wed, 20 Nov 2019 05:29:06 +0100 (CET) Received: from mail-pj1-x1043.google.com (mail-pj1-x1043.google.com [IPv6:2607:f8b0:4864:20::1043]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 40014F800C1 for ; Wed, 20 Nov 2019 05:29:01 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 40014F800C1 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="LBjJhoQv" Received: by mail-pj1-x1043.google.com with SMTP id f7so3592544pjw.5 for ; Tue, 19 Nov 2019 20:29:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=qtMzY8AGN3QG9aa6nEI7DA8/k3R+/MfhiSaP8tJFdSM=; b=LBjJhoQvqDe3OeE9Ca+ISlgmSstriSGyeywxEVSlUkvpRpJf5qcT8ebqtAUi6w5nnL TbEDFYL9ZVhSKRJszp1s6PwO4tKNIG8FvUEJ++hIrsPiNiZ6r3bOFX7M2JrbqdQMRMqL /tb3HAo75ISkHvCmF7UryBY1ozyRkHzDiOIBBwebxsLY6Qt3TXv/ltugObhCOdJir7Mi /ZIPaQxDyjLNGE3izpJ8ImalaHtPzXMqruEG9RpNjbg+vSyVT/UvSuAfoov32KnDwdft sF8SOu/sVqREXJGa7T5OqZc5o1zeNyjPMYtnOYjCZEg3J7/TcilPoMTi8nRsh+yqgFJr mW/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=qtMzY8AGN3QG9aa6nEI7DA8/k3R+/MfhiSaP8tJFdSM=; b=FcwNgvoaZLBctvf8nrU6GHJKGbjr9UG4znPCYyWsA6R6pz/inYpOQVlXUr0t0g5GFQ pROkMaIJZYxfOw9YezxqhTRR/4FpGKN9XenGF7bKb/FUp+PG4YdYKm54YFGNFG7cYY20 Em4by0MfU2nXLPLoib3pwTLg4q04pCBF6wIX+qT4DTFgO8xQNDJAA6GWq6w+1UsjarL5 cwe5MKlX2tnV7SvCKIu05L2Q9BfEHaV3osbos/xgkE/8OpifpsJHmnKSSOaclZWlZioV im1bqm3n8x1+635WLqnDhx9MY+iXxyecDFefPYfDn35HDU+4emgZnW8YdZsz78LWo4Vy 1Hjw== X-Gm-Message-State: APjAAAURjVBrwvbEDbHJdnyYUv3Bjq/Y/UAeP9zvtG/qiv8bBDIjJJjH htVwacP/4ooZUtwJqm6H6szchtOUjKo= X-Google-Smtp-Source: APXvYqwHCJXwsaxqRuWx1YhLD39HujaWXpKicK0N3YusJLx6hVmdJxqP5UyIJHhZ2PrCvtpdyvLXXQ== X-Received: by 2002:a17:90a:bf16:: with SMTP id c22mr1396930pjs.83.1574224139301; Tue, 19 Nov 2019 20:28:59 -0800 (PST) Received: from mangix-trapnet.lan ([69.42.0.214]) by smtp.gmail.com with ESMTPSA id a6sm5447285pja.30.2019.11.19.20.28.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Nov 2019 20:28:58 -0800 (PST) From: Rosen Penev To: alsa-devel@alsa-project.org Date: Tue, 19 Nov 2019 20:28:54 -0800 Message-Id: <20191120042856.415854-2-rosenp@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191120042856.415854-1-rosenp@gmail.com> References: <20191120042856.415854-1-rosenp@gmail.com> MIME-Version: 1.0 Subject: [alsa-devel] [PATCH 2/4] treewide: Fix wrong formats on 32-bit X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" uint64_t evaluates to unsigned long long on 32-bit, not unsigned long. Use the proper formats. Signed-off-by: Rosen Penev --- axfer/container.c | 7 ++++--- axfer/subcmd-transfer.c | 4 +++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/axfer/container.c b/axfer/container.c index 7da97c6..566acd0 100644 --- a/axfer/container.c +++ b/axfer/container.c @@ -13,6 +13,7 @@ #include #include #include +#include static const char *const cntr_type_labels[] = { [CONTAINER_TYPE_PARSER] = "parser", @@ -356,10 +357,10 @@ int container_context_pre_process(struct container_context *cntr, fprintf(stderr, " frames/second: %u\n", cntr->frames_per_second); if (cntr->type == CONTAINER_TYPE_PARSER) { - fprintf(stderr, " frames: %lu\n", + fprintf(stderr, " frames: %" PRIu64 "\n", *frame_count); } else { - fprintf(stderr, " max frames: %lu\n", + fprintf(stderr, " max frames: %" PRIu64 "\n", *frame_count); } } @@ -427,7 +428,7 @@ int container_context_post_process(struct container_context *cntr, assert(frame_count); if (cntr->verbose && cntr->handled_byte_count > 0) { - fprintf(stderr, " Handled bytes: %lu\n", + fprintf(stderr, " Handled bytes: %" PRIu64 "\n", cntr->handled_byte_count); } diff --git a/axfer/subcmd-transfer.c b/axfer/subcmd-transfer.c index 3ca745a..8746e6f 100644 --- a/axfer/subcmd-transfer.c +++ b/axfer/subcmd-transfer.c @@ -11,6 +11,7 @@ #include "misc.h" #include +#include struct context { struct xfer_context xfer; @@ -389,7 +390,8 @@ static int context_process_frames(struct context *ctx, if (!ctx->xfer.quiet) { fprintf(stderr, - "%s: Expected %lu frames, Actual %lu frames\n", + "%s: Expected %" PRIu64 "frames, " + "Actual %" PRIu64 "frames\n", snd_pcm_stream_name(direction), expected_frame_count, *actual_frame_count); if (ctx->interrupted) { -- 2.23.0 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org https://mailman.alsa-project.org/mailman/listinfo/alsa-devel