Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2488045rwd; Mon, 15 May 2023 12:24:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4ElaL2DJmc+qa8obnzRpwdGw+BlWlwnnffPqqbLxKxHG2WBaCGYG4g3rF6CLrq4IoUD909 X-Received: by 2002:a17:90b:30ca:b0:24e:3c23:9654 with SMTP id hi10-20020a17090b30ca00b0024e3c239654mr34813085pjb.44.1684178649433; Mon, 15 May 2023 12:24:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684178649; cv=none; d=google.com; s=arc-20160816; b=njkJ7LChS2ajAIGW5UtRjC5u2wlaEpnBbG3bCPh49RTaniwuolZIRA5pruxFYcprfD iKxEg3hz8mt+Q0jKYCurkf2mBlw97pSteVxnR5KyTQPvtl7TvIBjLPOAGp7LdsGiWGz6 zguJa+7ieZJW01T+WXGO2/xeLQVDDzqfMa1PW5SiBKCyX0gU+L4xfMffTo/QEMVLQRoa IC8oxil8RiQHfToWYKoNzAeEDxuJKwR+gMplqubhxte68Lx3rxc37210B4JRG+0/Tcrg O+w9HFh222Ph9r/39EocN9E2df09f/X0XKixGXlFrxElL8ewuhQz668K8ZkEB0ZAIiqa BkRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=iyOZ0oIZTfkXxnAAAuTIV2J70qHGcyFE8nzCDXGSNj8=; b=AgT2TgJdxmU6Whi72d7LE7K8F7T1xkgocfLPJ3/M05dTSHMssL9dZnNC0lg7PTrPvw K2cbkWfdk4BrfsFW5DpRYLzxTmN3tTXi2jZfnvnbfna2bP67ob+8kYBBZYDqV7dYVj3u RRhnpBX5xMwBz5AszqPcnazFbu2rKCZcZ/y/u0/NirZPlMA+oLxh9GSIQRm9j+Hm0AqC f38pDghW4qWzx+3rGfhXeZb6NcHqPx9/n5ciXVDwTj9rXrieyYxWf9qSbP1ACauRnD5E d0D+eZ1+vDA2XXnM+qK/VCLgTa9adPvm4Lamcluky4xVePQihkv0QEZx1NbpngaK8bcV 17zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=XcDuBr8U; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j15-20020a636e0f000000b00524ea62bcbcsi16338350pgc.209.2023.05.15.12.23.50; Mon, 15 May 2023 12:24:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=XcDuBr8U; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242300AbjEOTR7 (ORCPT + 99 others); Mon, 15 May 2023 15:17:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244405AbjEOTR6 (ORCPT ); Mon, 15 May 2023 15:17:58 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DDF79030 for ; Mon, 15 May 2023 12:17:46 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2ac89e6a5a1so130635981fa.0 for ; Mon, 15 May 2023 12:17:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684178263; x=1686770263; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=iyOZ0oIZTfkXxnAAAuTIV2J70qHGcyFE8nzCDXGSNj8=; b=XcDuBr8Ulcysmx6MfgDl/yVvMZ/a5yXTag7418Ro5t+aXF1bD92fZQKZTvA2D8+d8l 2Y98dZV2sS5ls0SHJrd720l+YhdJJzT+gC+4CUBxDo0bNmUiViMqsToa4O3h5rz6tYud VnZEPJeMpJal2IrM+9px/p9nJ+pukg6VlPqDuQh2XywbszLLH+KzpYhzfhep/qAtR5XZ qYIY+NfpIyB5wI430aska7WCn3Y5xqyQy+WeMFVuVBeWm+T1YIeKyRZhtW3exjC+GE6B bH+1tHn13v1t4cFKyg5eaGVX2RTypNVfbjIuoeXTEb1cHVVKWnutGOD9vpV0TrRCqahm 5fgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684178263; x=1686770263; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iyOZ0oIZTfkXxnAAAuTIV2J70qHGcyFE8nzCDXGSNj8=; b=dBrMl3A+TGQ2bRmvjy+ihV6N4GRIVEG+DZNIbNFNTfv+NogrBsa8dizKJeXkVbQntu spuwTx7H/ChuD9EOihNGQi+cf66kOZ4ZOva743CrO0xNWlbDE0wT/cflV8cKFrZVyl7a 8UufRMM/0hWWKES702jOEstBUeEyrh1Jeu9k8ifxYDJ1rP8cq6xxAPcxCL9aMYtT7UIu mTz5qj9MqeYey2Q/geCetxT0xGPd6gd8sNH/VZP/7kDZtK2ykudfATStewN6ZBS907Ql HFMlmw69nq2C9MhuANIx5fhLr1R2l/oWX8alZ6BLJO7NhrwZddGiw5HZCc/u2iIrtSVk ju+w== X-Gm-Message-State: AC+VfDw0iX7nORqHsN363/8oJ64/7E8v3I1mx8MQVxVOXpBlI19KR5N9 Fg/JUI2rCXmDoS5SglIDPqJiPzHaTwMnuYm4EisjsZJM X-Received: by 2002:a2e:93d5:0:b0:2ae:d757:4c41 with SMTP id p21-20020a2e93d5000000b002aed7574c41mr1927069ljh.23.1684178262851; Mon, 15 May 2023 12:17:42 -0700 (PDT) MIME-Version: 1.0 References: <20230511002252.30868-1-alice@ayaya.dev> <20230511002252.30868-2-alice@ayaya.dev> In-Reply-To: <20230511002252.30868-2-alice@ayaya.dev> From: Luiz Augusto von Dentz Date: Mon, 15 May 2023 12:17:30 -0700 Message-ID: Subject: Re: [PATCH BlueZ 2/3] client/player: use long long for off_t print To: psykose Cc: linux-bluetooth@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Psykose, On Wed, May 10, 2023 at 5:42=E2=80=AFPM psykose wrote: > > %lld is guaranteed to be a 64-bit int, which we enforce via > -D_FILE_OFFSET_BITS=3D64. > > Signed-off-by: psykose We don't use Signed-off-by for userspace patches. > --- > client/player.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/client/player.c b/client/player.c > index 7719076c8..856997319 100644 > --- a/client/player.c > +++ b/client/player.c > @@ -3578,7 +3578,7 @@ static int transport_send_seq(struct transport *tra= nsport, int fd, uint32_t num) > > offset =3D lseek(fd, 0, SEEK_CUR); > > - bt_shell_echo("[seq %d %d.%03ds] send: %zd/%zd bytes", > + bt_shell_echo("[seq %d %d.%03ds] send: %lld/%lld bytes", > transport->seq, secs, > (nsecs + 500000) / 1000000, > offset, transport->stat.st_size); > -- > 2.40.1 Perhaps we just promote offset to intmax_t and then print with %jd, that way it should work regardless of the actual size of off_t. --=20 Luiz Augusto von Dentz