From patchwork Thu Apr 19 06:36:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 10349167 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id ED6F9602B7 for ; Thu, 19 Apr 2018 06:32:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DEAAF24603 for ; Thu, 19 Apr 2018 06:32:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D336326247; Thu, 19 Apr 2018 06:32:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6E49324603 for ; Thu, 19 Apr 2018 06:32:25 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 5CB0C2676C6; Thu, 19 Apr 2018 08:32:02 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 208C12676A7; Thu, 19 Apr 2018 08:31:58 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by alsa0.perex.cz (Postfix) with ESMTP id 1B253267265 for ; Thu, 19 Apr 2018 08:31:55 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Apr 2018 23:31:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,467,1517904000"; d="scan'208";a="49074207" Received: from vkoul-udesk7.iind.intel.com ([10.223.84.143]) by orsmga001.jf.intel.com with ESMTP; 18 Apr 2018 23:31:54 -0700 From: Vinod Koul To: alsa-devel@alsa-project.org Date: Thu, 19 Apr 2018 12:06:19 +0530 Message-Id: <1524119780-21206-4-git-send-email-vinod.koul@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1524119780-21206-1-git-send-email-vinod.koul@intel.com> References: <1524119780-21206-1-git-send-email-vinod.koul@intel.com> MIME-Version: 1.0 Cc: Vinod Koul Subject: [alsa-devel] [PATCH 4/5] cplay: fix incorrect print specifier warning X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP We get a warning in cplay for incorrect print specifier, fix it by using right one %ld for long unsigned int. cplay.c:327:19: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long unsigned int’ [-Wformat=] fprintf(stderr, "codec ID %d is not supported\n", codec_id); Signed-off-by: Vinod Koul --- src/utils/cplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/cplay.c b/src/utils/cplay.c index d2c60f976c6c..ea36b8771caf 100644 --- a/src/utils/cplay.c +++ b/src/utils/cplay.c @@ -324,7 +324,7 @@ void play_samples(char *name, unsigned int card, unsigned int device, get_codec_iec(file, &config, &codec); break; default: - fprintf(stderr, "codec ID %d is not supported\n", codec_id); + fprintf(stderr, "codec ID %ld is not supported\n", codec_id); exit(EXIT_FAILURE); }