Message ID | 20230912004030.3116213-1-james.hilliard1@gmail.com |
---|---|
State | Accepted |
Delegated to: | Stefano Babic |
Headers | show
Return-Path: <swupdate+bncBCL4HCW73QCBBBHH72TQMGQED7ONP7Q@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20230601 header.b=cNx7/JRX; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20221208 header.b=JFqP7YZ5; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2001:4860:4864:20::3e; helo=mail-oa1-x3e.google.com; envelope-from=swupdate+bncbcl4hcw73qcbbbhh72tqmgqed7onp7q@googlegroups.com; receiver=patchwork.ozlabs.org) Received: from mail-oa1-x3e.google.com (mail-oa1-x3e.google.com [IPv6:2001:4860:4864:20::3e]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Rl4WF5VT9z1yhL for <incoming@patchwork.ozlabs.org>; Tue, 12 Sep 2023 10:40:39 +1000 (AEST) Received: by mail-oa1-x3e.google.com with SMTP id 586e51a60fabf-1d0f1cdb89asf5947919fac.1 for <incoming@patchwork.ozlabs.org>; Mon, 11 Sep 2023 17:40:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1694479236; cv=pass; d=google.com; s=arc-20160816; b=fbkeKCaUpKC44cyXfv4ja7N8O5MX4IrI7mjXOLlLYSrfKiOl9Xbdvo0COUGVTn+ghE jyrFjQmB1LFfnS3VlMdPnJPNtE1YVzRXv7YcC75NWHVJNXJCUMxat1wW6o3dSpxm4bYp /HQrchIpyyNVThhiY5qDoc7P6nDFZE0c0MQcxn/Ue8Au7AMv6cJ2WG5hEOnrfJPPyrmg GkCd2o36sE0d2MFd6urvAwFgz28F4klZvuzxwl7CYaDNinqF29gO8ZqbJpCWVp1A09Op k2bsZ0SeWOdNCchPvs6vj6WYUR1gqlxfCgtBf9zsXgytXLNQh8k8cDdF2c/OX2UJTpr9 APxw== 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:message-id:date :subject:cc:to:from:sender:dkim-signature:dkim-signature; bh=BZ1v2hZMx9Zg/dHTJLWytr8ujtZ8HrN+KeSPQOFl8W8=; fh=KPrAw848PoyEggiIX82ubXk7sJG2UD396EeWf1FQVUo=; b=e0oOBva7QTO2YI47Y3RFaUU/59iw0TJWfOx5GOJ3cNn7HGQChRSA7ju28HZrvoDP7W hAYmPaCWt95YALk0wz1GN0rXsYyxqAsMibT7/VUMlzK+zZU+AJgLs4cYVeyoYbg3kExy V8C4ddBn5ZF/0sVZtJFr3fjaiK1YQday5oWs9ogYtu5+UZrKMwJvvvrYrw9DBJ7qKAvF B1u+kvY3GEzX9f/suxDpDXIEqzDTywLRDTUJZadHwfYIepn2CosrmKFSlccXj/ltdnOO pWIZuXzSZoAkLoskGgJh11KGk/lxIqajKVYJkIT5KTTXVvUMwQY4t5Vm0DqutiXkE21B u+SQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=BILOZlgL; spf=pass (google.com: domain of james.hilliard1@gmail.com designates 2607:f8b0:4864:20::130 as permitted sender) smtp.mailfrom=james.hilliard1@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1694479236; x=1695084036; darn=patchwork.ozlabs.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:cc:to:from :sender:from:to:cc:subject:date:message-id:reply-to; bh=BZ1v2hZMx9Zg/dHTJLWytr8ujtZ8HrN+KeSPQOFl8W8=; b=cNx7/JRXvngRZAxdfbfnNMIZTEtfN3JioV2c5ZOEwrCrHIrY9eu7xI42DQYuOuid66 +A3xcYWUmyMqIgUL16w1NlO3jBY37WsWv5bydXoMlkw+fbLGtxTZBKvYmH3ldomNrXPY WmwFm6ujG6K7onj1UdJUihJmnCdBz1KJHt65SKdElCL74FBV00hiPqpK6tGObimIgOAa +C/M1sNN5rhRGdzsJxyXrm3hRqyIyiZs5+s33NQCncD+8poY22ZKG8oqcpNbddF/U8Jj UDWER0Qml21xfu9XREzAlp8WAkJxURQzpNnikfgrkpNJPB3w5OY57DddVmgrAt8a8+pA 3yWQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694479236; x=1695084036; darn=patchwork.ozlabs.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:cc:to:from :from:to:cc:subject:date:message-id:reply-to; bh=BZ1v2hZMx9Zg/dHTJLWytr8ujtZ8HrN+KeSPQOFl8W8=; b=JFqP7YZ5V+5wOt72DQhY1vpTauYzBVMsBHmKULNOplZs0gNBtzc29VISak48a73941 4k6/AYIUGwSxYU6xAZacx7N+7VxnkwCKEkf3ffoC5GIaOwuFDp9/d8DcQ5P+A7jEFe9x 5zWzzH5gjY7+iAKgEeTyxXUxZ6qTY54t1vAOmSgwQVspcBVg2IYJK8Id2YfFDgl8rdPt VG/m/jONAEY3AzQMFCRZpHqL/IdjuzlZAAd/ibVv6/+rnaPPvXQVevEjNa6PWImw834K usR1OpVf33JoCbpestN3jlfnEA7v84EO9k6tzgLXRdAzbCWtzoXfJ6wcJ1jdwufvdNMW k+mQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694479236; x=1695084036; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:cc:to:from:x-beenthere:x-gm-message-state :sender:from:to:cc:subject:date:message-id:reply-to; bh=BZ1v2hZMx9Zg/dHTJLWytr8ujtZ8HrN+KeSPQOFl8W8=; b=mR8Nwo8qd3UDGOvwfxK5xTIxCZ1TjkbJPfIEDywR7XqIc9190mIk40xk1FesIHLKGm J4UVhHEv0yv+yuLrBhRYgfWeeVDQShfic7OT5mBcseW+qTPBRdaeaBeMhJZX82Z7lGdO PU/f++IBJX3hLxJkkiyVL8w491jcA1VaesOUdCMq1fItYM8PEUxFvKDiYVcJosNHQfqU B1ZF+tSQBAjeiAXWGDx+c4gs9JSYOQQGVsT17BPQfmpCknSONlqQ9B7MRjWf75/Vx1GU EQ5F8u9ZNjO1DhYRpTXmazeII4/Js5fMSugHrabgsidRT7ukrb/l1bYWWsE/U994f9uK 9GBw== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOJu0YxmycI7zpHDi032sSZbxDofnaKzE84nBw11B7tELy9R8bRQlqCY +E0Ihm231dAc9APU18Mf3EI= X-Google-Smtp-Source: AGHT+IGaSMi+GYH25TaLjEBFXoAV9H27jVjHgHDGr1iwYlxgOLeeCik0CreNrB3JX1msT3nWdsd2Ag== X-Received: by 2002:a05:6870:3513:b0:1d0:c53c:19e5 with SMTP id k19-20020a056870351300b001d0c53c19e5mr14039936oah.39.1694479236749; Mon, 11 Sep 2023 17:40:36 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a05:6870:3313:b0:1ba:cb89:5d4f with SMTP id x19-20020a056870331300b001bacb895d4fls1539887oae.1.-pod-prod-09-us; Mon, 11 Sep 2023 17:40:36 -0700 (PDT) X-Received: by 2002:a05:6808:9b5:b0:3a7:adf5:d5a6 with SMTP id e21-20020a05680809b500b003a7adf5d5a6mr12509355oig.32.1694479235882; Mon, 11 Sep 2023 17:40:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694479235; cv=none; d=google.com; s=arc-20160816; b=hw/Fl/69RN4E0jc94eP8IN2OpjsZ1zh7D8K1grYkkbbk2decXO4qPACC1IcviXLDgw x7uOIoWIrqQnJustdsIR5oCHzKEHhklG3Srta/1OwtuDRKGWGy+ELGPfvA95UPXi4YOK CLVoPV0aEP02cMak6HIdOP7h4384QlfKVO9zkJpgbCnup0HlKrg6ZcuVoGukklBpS0QW nZQmmLIsU/3yxpH2hV6tVZqPliYNdJ0NXUYIGXaSdZ7401AHTbyIVTUoFbIwOdyl9WRE Xwty56+3deIoxPqIm5tA1cLcMRVxld/qtVegW+K43W5rGjhePdn5xkjP710WjRw/Af0L KsCg== 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:cc :to:from:dkim-signature; bh=6kEg7Tm12UozBlyJGiE030l7UDalxStXNblyBxh9KOE=; fh=KPrAw848PoyEggiIX82ubXk7sJG2UD396EeWf1FQVUo=; b=aVpBxejSNGux8BV/Q0i95W8wVlFsfgvzP5n4wuKJNQWMfsF0/2B7QEfD7ofirtuvdp Qc+fGyIQME5VR7a/6aCuTrNkOuHUnODemKQjWi98GhJGh3gQnYCe38pPGbmEPKgzEHbN BSaxu2Db4DHuO01RTPQ6jLhw3aYKQgdstKbq5qlPbpYhhDnZF9vIp18DYOwaadBMI/zg x2XX6PVxEpIIvHDssZEX3yLc8oo2lv9fUPm2C+Fdm8HdPKJ7x8/Gd0e/M17FoFm3u1bI KuVCoMa8YZeEZUyzzYsxNFw2pefX5DWDJfSPikalLO/E1ELDX+hmZxlUxwWMOpWB1xNE WW2A== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=BILOZlgL; spf=pass (google.com: domain of james.hilliard1@gmail.com designates 2607:f8b0:4864:20::130 as permitted sender) smtp.mailfrom=james.hilliard1@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from mail-il1-x130.google.com (mail-il1-x130.google.com. [2607:f8b0:4864:20::130]) by gmr-mx.google.com with ESMTPS id w5-20020a056808140500b003a7aaf3e961si1065032oiv.5.2023.09.11.17.40.35 for <swupdate@googlegroups.com> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 11 Sep 2023 17:40:35 -0700 (PDT) Received-SPF: pass (google.com: domain of james.hilliard1@gmail.com designates 2607:f8b0:4864:20::130 as permitted sender) client-ip=2607:f8b0:4864:20::130; Received: by mail-il1-x130.google.com with SMTP id e9e14a558f8ab-34f7471b599so4105245ab.3 for <swupdate@googlegroups.com>; Mon, 11 Sep 2023 17:40:35 -0700 (PDT) X-Received: by 2002:a92:d34e:0:b0:348:e9e4:4902 with SMTP id a14-20020a92d34e000000b00348e9e44902mr12112194ilh.0.1694479235066; Mon, 11 Sep 2023 17:40:35 -0700 (PDT) Received: from james-x399.localdomain (71-33-152-19.hlrn.qwest.net. [71.33.152.19]) by smtp.gmail.com with ESMTPSA id f14-20020a92cb4e000000b0034cb0abb579sm2687145ilq.49.2023.09.11.17.40.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Sep 2023 17:40:34 -0700 (PDT) From: James Hilliard <james.hilliard1@gmail.com> To: swupdate@googlegroups.com Cc: James Hilliard <james.hilliard1@gmail.com> Subject: [swupdate] [PATCH 1/1] Fix size_t printf format specifiers Date: Mon, 11 Sep 2023 18:40:30 -0600 Message-Id: <20230912004030.3116213-1-james.hilliard1@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Original-Sender: james.hilliard1@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=BILOZlgL; spf=pass (google.com: domain of james.hilliard1@gmail.com designates 2607:f8b0:4864:20::130 as permitted sender) smtp.mailfrom=james.hilliard1@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: <swupdate.googlegroups.com> X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: <https://groups.google.com/group/swupdate/post>, <mailto:swupdate@googlegroups.com> List-Help: <https://groups.google.com/support/>, <mailto:swupdate+help@googlegroups.com> List-Archive: <https://groups.google.com/group/swupdate List-Subscribe: <https://groups.google.com/group/swupdate/subscribe>, <mailto:swupdate+subscribe@googlegroups.com> List-Unsubscribe: <mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>, <https://groups.google.com/group/swupdate/subscribe> |
Series |
[1/1] Fix size_t printf format specifiers
|
expand
|
diff --git a/handlers/copy_handler.c b/handlers/copy_handler.c index 3a8c1e0..e463bb5 100644 --- a/handlers/copy_handler.c +++ b/handlers/copy_handler.c @@ -266,7 +266,7 @@ static int copy_image_file(struct img_type *img, void *data) /* * Check for recursive copy */ - TRACE("Copying %lu from %s to %s", size, copyfrom, img->device); + TRACE("Copying %zu from %s to %s", size, copyfrom, img->device); recursive = strtobool(dict_get_value(&img->properties, "recursive")); createdest = strtobool(dict_get_value(&img->properties, "create-destination")); diff --git a/handlers/rdiff_handler.c b/handlers/rdiff_handler.c index 268ec6b..e01a127 100644 --- a/handlers/rdiff_handler.c +++ b/handlers/rdiff_handler.c @@ -173,7 +173,7 @@ static inline void rdiff_stats(const char* msg, struct rdiff_t *rdiff_state, rs_ case RS_RUNNING: strresult = (char*)"RUNNING"; break; default: break; } - TRACE("%s avail_in=%ld avail_out=%ld result=%s", + TRACE("%s avail_in=%zu avail_out=%zu result=%s", msg, buffers->avail_in, buffers->avail_out, strresult); }
Fixes compilation warnings due to incorrect specifiers. Signed-off-by: James Hilliard <james.hilliard1@gmail.com> --- handlers/copy_handler.c | 2 +- handlers/rdiff_handler.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)