Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp809290pxb; Fri, 22 Apr 2022 11:36:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnvO77ttsBYNgEkd6pYnsrIr9nU3oQqsU0gXAJKZyFs20RudD7185c7URr1MHXcykJeH/S X-Received: by 2002:a65:6951:0:b0:381:f10:ccaa with SMTP id w17-20020a656951000000b003810f10ccaamr4902969pgq.587.1650652610011; Fri, 22 Apr 2022 11:36:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650652610; cv=none; d=google.com; s=arc-20160816; b=j6XtZfYOY9t5khDKV1lKr228U0zVxGa4c+n94AbRs2sYRI35VSAEK+rltr5xs18M0P 5YjJce73oF4xaW/QjE9xuetgC5GV6IT14AOhDWLhjMVqaU6Ez+9sDgJY/7asZNwtgETe PebznmpqcSLaW379OZ1Z4DbenJ4cid6/KE3/ytgZQIRRmpYI8NhFGX0OmrMkSvvyf4nl n/gpI+aGD62pa87nIVOGJpVkK5Av3xq3CbryXLHs5VW4o/BXO33b3h1rKEXTUFHdAYZx wb5ZW21xxBKy9kcTteSJonCcXuKzfZzXq52m4pfsP2Kd3ILYGJH4HRZ47reS2PyAO43U y5cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=d76SzSLsBTkFqFFguIDMrMvNHnCvFYILc5XiPKskwYo=; b=m4f+/MNFnbQw2HpoJn0Nn8z5+fL6RNcaxPNDDQ+NseWyotz9KPsiTJMZo+zKWd/NDu sJgSG034vibOedIowhjITobM5/xedoKk3AJqY7nPDlrZWXuXqVkvGH+TrDz9kMaJ/QIJ +IZ+Epu1V1a+z3bahrmmavPtvvPyakqR6WGsmGvuzxZRLR8CVQ8GYpBtqiB+kcT6dRpw 2w1F6XLm9Wc2kKSWWauQbiGjYAZwWjgcH1+hL4gOIwwGsLZXRDo5l+RS4+3AWet3WNPD SqHB283zboVjesTW8YGgoj/bNin+xhzFchz2nneNGUsmWT80R1HL1TSO5pDkdsUggLrv xmTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Gju+6I2r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id kx4-20020a17090b228400b001ca8987c767si10028391pjb.144.2022.04.22.11.36.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 11:36:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Gju+6I2r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8D48E5AEF1; Fri, 22 Apr 2022 11:05:13 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1381004AbiDTRSQ (ORCPT + 99 others); Wed, 20 Apr 2022 13:18:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381042AbiDTRRq (ORCPT ); Wed, 20 Apr 2022 13:17:46 -0400 Received: from mail-vk1-xa30.google.com (mail-vk1-xa30.google.com [IPv6:2607:f8b0:4864:20::a30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 294A32BD7; Wed, 20 Apr 2022 10:14:58 -0700 (PDT) Received: by mail-vk1-xa30.google.com with SMTP id c4so1096743vkq.9; Wed, 20 Apr 2022 10:14:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=d76SzSLsBTkFqFFguIDMrMvNHnCvFYILc5XiPKskwYo=; b=Gju+6I2rCSYu423lBeSyL0oV5n9GSgLkcJh4F2N6s0OI6R11yXpVW3Lvg5ysdv8Ka+ HH563Lr1r3cjei21MPMfIeUe1ngDm9GNnlgGaRzjS57S4/T4EwLCjP/1zQfsjmnMG6sH /cv+/+MR9RxgVL+5WwO4iT8lHYIz5t4YwNMTAga5Wu0/xX6Dlw28CANZIGfH82hcaoC1 zOAMpZ+kO7DEPK9sPDTrAhoGQrELT9mP8tlq5zbmtoIa75nxxt3qdgnOROc2dz5/Cj2w hEqq3pN5wlD5eQcXJB76l/sZbv2x3uEJcoAZeKA+hhltTm3In7Th887jdy4rIvz0GU7Y lSyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=d76SzSLsBTkFqFFguIDMrMvNHnCvFYILc5XiPKskwYo=; b=7zboJY2CtSl62rnr4oFVPzmghAKI32K0hjyKYS07dYe9KWSaK/DKCZ7lVfLhP7JNwS X2hKeGe3WEINtP1GrdUZqDDdqP5jzR+r8kblJBR5di3MZRByvFG7hSx0dKx3WFur0Da7 U+Fr4gb8ScFesk5cc0eVAfFR5DsEnqYwfKXTQaPN1wXPNpzCGkWL3DIBHum7xenqMlv8 fO8RWK0KOYlstZHOU1x+XrDxRDRg+6x0ooogjWVvdl910IWpAf9wbleA5TjYawupnRSW 6zRE+pZ9vabp4A3kjZM8aR/fv4kaCAqOzYKJxU3BoDDUFzf2GzcG9Xruo1Tw61OtSdDC D3dA== X-Gm-Message-State: AOAM5312q+vkqXxAxZJFi+Q2YbYavDWHNmJSui1TcYAlu9L3VYzK9nMO 99miOSct7U2Lsa5L0Uq6mF8AuHFd4S7m6kGscEQ= X-Received: by 2002:ac5:cd88:0:b0:32c:5497:6995 with SMTP id i8-20020ac5cd88000000b0032c54976995mr6271589vka.33.1650474897363; Wed, 20 Apr 2022 10:14:57 -0700 (PDT) MIME-Version: 1.0 References: <20220414223704.341028-1-alobakin@pm.me> <20220414223704.341028-8-alobakin@pm.me> In-Reply-To: <20220414223704.341028-8-alobakin@pm.me> From: Andrii Nakryiko Date: Wed, 20 Apr 2022 10:14:46 -0700 Message-ID: Subject: Re: [PATCH bpf-next 07/11] samples: bpf: fix uin64_t format literals To: Alexander Lobakin Cc: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , "David S. Miller" , Jakub Kicinski , Jesper Dangaard Brouer , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Magnus Karlsson , Jonathan Lemon , Nathan Chancellor , Nick Desaulniers , Dmitrii Dolgov <9erthalion6@gmail.com>, Quentin Monnet , Tiezhu Yang , Kumar Kartikeya Dwivedi , Chenbo Feng , Willem de Bruijn , Daniel Wagner , Thomas Graf , Ong Boon Leong , "linux-perf-use." , open list , Networking , bpf , llvm@lists.linux.dev Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE autolearn=no 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-kernel@vger.kernel.org On Thu, Apr 14, 2022 at 3:46 PM Alexander Lobakin wrote: > > There's a couple places where uin64_t is being passed as an %ld > format argument, which is incorrect (should be %lld). Fix them. It depends on architecture, on some it will be %lu, on some it will be %llu. But instead of PRIu64, just cast it to size_t and use %zu as formatter > > Fixes: 51570a5ab2b7 ("A Sample of using socket cookie and uid for traffic monitoring") > Fixes: 00f660eaf378 ("Sample program using SO_COOKIE") > Signed-off-by: Alexander Lobakin > --- > samples/bpf/cookie_uid_helper_example.c | 12 ++++++------ > samples/bpf/lwt_len_hist_user.c | 4 ++-- > 2 files changed, 8 insertions(+), 8 deletions(-) > [...]