From patchwork Thu Feb 6 11:09:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Eggers X-Patchwork-Id: 1234254 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::33b; helo=mail-wm1-x33b.google.com; envelope-from=swupdate+bncbaabbjhi57yqkgqetb5hdhq@googlegroups.com; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=arri.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20161025 header.b=onCZWPEP; dkim-atps=neutral Received: from mail-wm1-x33b.google.com (mail-wm1-x33b.google.com [IPv6:2a00:1450:4864:20::33b]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48CwhR22jCz9sRG for ; Thu, 6 Feb 2020 22:10:31 +1100 (AEDT) Received: by mail-wm1-x33b.google.com with SMTP id g26sf2626738wmk.6 for ; Thu, 06 Feb 2020 03:10:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1580987428; cv=pass; d=google.com; s=arc-20160816; b=IhiqJNqnr9CINJYBlqrni8jI1gaOKQMZSk1dD4Ebc2uxyNvzzDCQFjPo1eJlg6XEqa /ROTGktxzcTzVIIRiltM6QfxGz9TNAisrD+eieGtNBwGU4qTXI5nnDJtcfhAozh2KYkA m0QftEeUeSvxD4FSvQArxH0t8bLSUJQCdBtYtdYbpg5FnIMEWG+jERVMr79KaZb+3nJB jSbUeZJAnISWpGPa12FeQx6FhDPJSO9nt01BKojzR87k3MiaQ1yLMm+QvU/9sjkuKPn2 wfr53qR7V5o71rq93plOAdLhhLL+ppB3g6c9HAk4e1XM3GoR9yz2GOBl/lYevzco+WGS 80Zw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=M7RwKVM5FNJxgVT/Jo7JbyNiSPQX3ar7QSahIHBPvbo=; b=cXm2VWull7kN9RePZPDHiwljYfdoeg+xNiaNSnIdPcGszVwoCY1eRAK9RGMrcIX6+7 P+9Q6OPCkX7tN3L1kXBbcVtDiehQpS2FuPgrVLfU6X4dKO8BRJmGvvlS7/kjhe9hOvOG xa/4km+GR+tb+OSb4dW2FklpUztUs4Bww7lPpmkjkgZzy/ma37Y2JVriRQzhL29hSd94 TPia0uqumUszRkgo6+TrVT8AKh2KQQ36ewqJNlDqkqLXKDJ5+dMFVHq/3x3RMQJXMbyR UlUyPHO8HhYJJjqJVKiM+9rmoVJKNDyMlYJV14kiunHwdJPr7uzEsQMKpZpcJJ3mNAIv cmkQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of ceggers@arri.de designates 94.199.90.94 as permitted sender) smtp.mailfrom=CEggers@arri.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=M7RwKVM5FNJxgVT/Jo7JbyNiSPQX3ar7QSahIHBPvbo=; b=onCZWPEPmGmC17r/GIknUH8otwQou3Mvbn5dM5uEBlymX1t2Z6IB8hUhXoXQZR0JTI LKLDVgwUJDs6xHWScXR58sJ0aO1AMIepEP38mfs/Qwn9DBBbved32dE31WuFTKfwpl9A NpxVw92dzj57tSTefXO0mreHkhWtNGTX73zUfKiffGF8KHSjR9nILKSgYPpSjjRLBYIu Uq78dYr+w8ABU4xrAG11gkzc/OyknHVpB+tIU1MV3D3sHLMXSL6JRm1DKbQgPE/J6pR8 zaUJ8Qz5xlE8Xs5tIsIkC1ZmewNvZUWkMTyTWPe++tZ4H1AEo7FU63/+/J4Y2Km/gr/s Jpfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=M7RwKVM5FNJxgVT/Jo7JbyNiSPQX3ar7QSahIHBPvbo=; b=DUOrizkR4XGdQ+sWc3p+WaW3MSEv8FUx95FeS/ADMaXkkRjLhcYiZxXvyheSSBbZ9W YZqNyoJEPG68PtWcjJjzaxO6X0lWASHjYLmqA52IKOi09m30k80XT6t+v3OXdXH2kJqS YXW9T0NjB4G7L2CNY4Ki9tPnV3n8qNGLqd8jtFWoUhqXlI4sRk5tHKLQMz9khADig75K wr03NOHiJ4ONpnEpSGJ8bqyuYbnZu2wi3b1AGf8bpJKzUBsJcFQEzO2UYD+ml71wzzfZ hwbCCiX6AgG5bsyI2Ko6PwDi9oVO87A7TEWqzSW3RlWoavrPz6+cqmZM1oTsPeh+hMlb A/ww== Sender: swupdate@googlegroups.com X-Gm-Message-State: APjAAAVisDMmL6jxA5rT3wrxnd/G044nDvja8ML/pUxwIeDYjbC1bGDx h8UD9/hOdwlGbaflUBkIw98= X-Google-Smtp-Source: APXvYqyo4vYFpwfrLKAMLiDC8R3Vk3YWWhQgo/Qu8KdVQgUZ4nmw1+B9mXEGslv1pl0nx6ifkNfi9Q== X-Received: by 2002:a5d:67c7:: with SMTP id n7mr3215198wrw.319.1580987428344; Thu, 06 Feb 2020 03:10:28 -0800 (PST) X-BeenThere: swupdate@googlegroups.com Received: by 2002:adf:ebc5:: with SMTP id v5ls3535242wrn.8.gmail; Thu, 06 Feb 2020 03:10:27 -0800 (PST) X-Received: by 2002:a5d:6708:: with SMTP id o8mr3445497wru.296.1580987427689; Thu, 06 Feb 2020 03:10:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580987427; cv=none; d=google.com; s=arc-20160816; b=bK/kFjQkRfALoUZUJ1fK7xct6pxTYN7sW1o+UnmK+UubsRUakCcVcY1wAOSbK3DdwF reoXwtTyhP49/8DaCYgUadsIoPBhIyAofA9/EIgbAKBVsXEh3fpgOeJlUfu1DOUTMVse Iot0t110RTnoMvy2Inps5rllWfIEOpGV8CXyGaJ4JjUS7HbyC/tS6M9xBQmf1V/DqoWB NTRnSQeIad5EO33hcMzC0J6RULRiiS/fDKKtb4ywpPqO6tsdxqeyRV7cMd4NV9n00Ybg cs4BGnn1cnyM2OhWHXazrkcuGCAfis9r7ZVvHNOUvpVpEb5Im2z279wDJhSCffH3XZqH Fj3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=qlMSZAMnzmI677e6N+bRq03Cs5WVNMdHx/llEMuYnl8=; b=HtLO82hkv2mAdUB7VwEld4PYaz9BXoF2lKGoTBg9cC7dHY2e56Ns50eK/TWxsGHV7T V1Dp78FRcZeJMsq6A3dR9cABsyjLEhCw69mnikruf/bJND/I7Gr9FuRIvopUGeS6H17T 4dHXau6MUPzpxhfAALxBc0s7dyIpHZCMSg5GOjkeBByIsUUu5pdM/YDM8aZDok/XSrMr VyCfkQftidQ6ssNnB2TL5NPu45iO9T7OCQJpsJUE5+x5ZIrzNGiNcGfO7CidjzfqEelW sB9pHkAPg4/UwWaEgHHP7XaitHtAgjfZYCb7S7yVKTqkx+wYM3v6NDuyIRyIXaEPv6aA SiEA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ceggers@arri.de designates 94.199.90.94 as permitted sender) smtp.mailfrom=CEggers@arri.de Received: from mailout04.rmx.de (mailout04.rmx.de. [94.199.90.94]) by gmr-mx.google.com with ESMTPS id p23si144800wma.1.2020.02.06.03.10.27 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Feb 2020 03:10:27 -0800 (PST) Received-SPF: pass (google.com: domain of ceggers@arri.de designates 94.199.90.94 as permitted sender) client-ip=94.199.90.94; Received: from kdin01.retarus.com (kdin01.dmz1.retloc [172.19.17.48]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mailout04.rmx.de (Postfix) with ESMTPS id 48CwhK5rxWz3qxGx for ; Thu, 6 Feb 2020 12:10:25 +0100 (CET) Received: from ppmail.arri.de (unknown [217.111.95.7]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by kdin01.retarus.com (Postfix) with ESMTPS id 48Cwh909Fxz2yxv for ; Thu, 6 Feb 2020 12:10:17 +0100 (CET) Received: from mta.arri.de ([192.168.100.141]) by ppmail.arri.de over TLS secured channel with Microsoft SMTPSVC(7.0.6002.18264); Thu, 6 Feb 2020 12:10:15 +0100 Received: from N95HX1G2.arri.de (192.168.201.254) by mta.arri.de (192.168.100.104) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 6 Feb 2020 12:10:14 +0100 From: Christian Eggers To: CC: , Christian Eggers Subject: [swupdate] [PATCH 2/5] diskpart_handler: Fix printf format warnings Date: Thu, 6 Feb 2020 12:09:57 +0100 Message-ID: <20200206111000.889-3-ceggers@arri.de> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20200206111000.889-1-ceggers@arri.de> References: <20200206111000.889-1-ceggers@arri.de> MIME-Version: 1.0 X-Originating-IP: [192.168.201.254] X-OriginalArrivalTime: 06 Feb 2020 11:10:15.0222 (UTC) FILETIME=[0207E560:01D5DCDE] X-RMX-ID: 20200206-121019-48Cwh909Fxz2yxv-0@kdin01 X-RMX-SOURCE: 217.111.95.7 X-Original-Sender: ceggers@arri.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ceggers@arri.de designates 94.199.90.94 as permitted sender) smtp.mailfrom=CEggers@arri.de Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , - include instead of o provides PRIu64 o includes (see inttypes.h(0P)) - use "%zu" instead of "%lu" for formatting size_t values - use PRIu64 instead of "%lu" for formatting uint64_t values Signed-off-by: Christian Eggers --- handlers/diskpart_handler.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/handlers/diskpart_handler.c b/handlers/diskpart_handler.c index b61d574..cd3b042 100644 --- a/handlers/diskpart_handler.c +++ b/handlers/diskpart_handler.c @@ -8,7 +8,7 @@ #include #include #include -#include +#include #include #include #include @@ -177,7 +177,7 @@ static int diskpart(struct img_type *img, elem = LIST_NEXT(elem, next); } - TRACE("partition-%lu:%s size %lu start %lu type %s", + TRACE("partition-%zu:%s size %" PRIu64 " start %zu type %s", part->partno, part->name, part->size, @@ -253,7 +253,7 @@ static int diskpart(struct img_type *img, WARN("I cannot set all partition's parameters"); } if (fdisk_add_partition(cxt, newpa, &partno) < 0) { - ERROR("I cannot add partition %lu(%s)", part->partno, part->name); + ERROR("I cannot add partition %zu(%s)", part->partno, part->name); } fdisk_unref_partition(newpa); } else { @@ -262,7 +262,7 @@ static int diskpart(struct img_type *img, WARN("I cannot set all partition's parameters"); } if (fdisk_set_partition(cxt, part->partno, pa) < 0) { - ERROR("I cannot modify partition %lu(%s)", part->partno, part->name); + ERROR("I cannot modify partition %zu(%s)", part->partno, part->name); } fdisk_unref_partition(pa); }