Received: by 2002:ab2:5d18:0:b0:1ef:7a0f:c32d with SMTP id j24csp427543lqk; Sat, 9 Mar 2024 18:03:03 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUmDkzMwhsmV2SKFXB95gqL1Vy036RXLGiSBfgZwpSm77K1MKuqaiVN21VOZoRW4RdpoBz3CWlFzL+GhcQsamYAU/1Bfo6k0py9RHbJ1A== X-Google-Smtp-Source: AGHT+IEpLZRPEtB9dvkCmMsSzJRe0JRL/h5eqLq4FfJrdkaOFC0+3H3XhbOam6BcBq+Lur1fTtnj X-Received: by 2002:a05:6a00:21c9:b0:6e6:57a9:f8b1 with SMTP id t9-20020a056a0021c900b006e657a9f8b1mr5680518pfj.9.1710036183670; Sat, 09 Mar 2024 18:03:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1710036183; cv=pass; d=google.com; s=arc-20160816; b=lWqLy2bia32Bmfxh27+W1VsIALLfFtPROgaJ3E1IRHp5AtSmPajrJuFaED0up3sKVa Pwt/9owO/qpmPGvzaPQEYpR599o1SwNe1zxqUOv9iE1zKHM29jPR00BHM1EEsJVir12m BKQ72/zBg0bUcN5nrsSL9ihHE0kiNkOROwdXMw6rseIx9HDLWnqHzBr3n4HggPn5QGR3 nZ9WoORkf+hTueXo/7Lid3CIMxxprE2fNvysmXqXoXHVbaqytfM2yElyvl8zk40xsktZ +uqyK+/FF+aSKkkazS60VgDBLn9zX+w85r4x0bKYBVn8HROuWbJDGLf74SRl1+wLj+Z9 qiyQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=RAsyNx9RRvHmqpg8IRE0aWW1qLeMnDq+gZ1NcfQF3s8=; fh=E23Jkxpob6YD24WBbSKHJtCwJOxEidsO8IKXnM/meco=; b=E8wvL2PXyfvBrMoQ3MPzVmj+fGDw6Uk+2FlWg59JhC03xNrVG9ocsAGtCOydvVzR1G bi5F745vktCKTo37X01O8uTO9uEt2JpUYbiFTDnfy+ie6gSr6r+6mSpHI7OFStgz/7mW Gwd7qP0DdX+GWfksTktqT8/5oivpGYb0IxmQXIKE0RmoqocS6iWuHHLZA4ePlTjr+YrR C82kgakp2rW4ErmB4yVDFkZeVwzaTmqwUwSDZcv8xQom72AjNzokpp9C+bOmlVx9fID1 XrGSwTay2v4mGhYrr6b5qLDZlr+Bz0SzrjxC8H7GDYc+dxeq6+Gx1XOIhHyd5lwmUPqC diGQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=X9TpsZSL; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-wireless+bounces-4525-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4525-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id b4-20020a056a000cc400b006e683cf44ebsi989889pfv.369.2024.03.09.18.03.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Mar 2024 18:03:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-4525-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=X9TpsZSL; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-wireless+bounces-4525-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4525-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 3E49328135B for ; Sun, 10 Mar 2024 02:03:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 55200ED8; Sun, 10 Mar 2024 02:03:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="X9TpsZSL" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-qv1-f52.google.com (mail-qv1-f52.google.com [209.85.219.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A81C4EC5 for ; Sun, 10 Mar 2024 02:02:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710036180; cv=none; b=utTi8P++NGY3NA8jBeEIyz1YpOptyuM3qwoO+7vu5gotBZq4xvtiaYi1+EA8hzAc6PuRmG5VsQtzEOCF20KM9cNT18Py4+TZbn3s5/d7ut/T6TfPyC3ADJ3IfmWgT7JihJ5bsvrcaBiIVQ4q4BgCRqyFZ94yC2hBdVoXF7kPpj0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710036180; c=relaxed/simple; bh=p0sxo0ufuzidpfpXIINl9CS0RLkbxA2mlkIy6H1xpjs=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=EAiFDVEe0RJh7oLr2RYphAI2JiL4iJamVYkCZa9pCE+jFZvOY7rkep8zjBzwk8TFkt6WcRd2pQN9nC1Z2odn7YXRWHxQ44LS2epjdzPYvWz91gUDw1KYcyA8z8nKvUU0xIfYln0PWiIeNinBo+LLgKBDXjnW5nqHhnjhDgWvSFg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=X9TpsZSL; arc=none smtp.client-ip=209.85.219.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-qv1-f52.google.com with SMTP id 6a1803df08f44-690c1747c3cso7426146d6.0 for ; Sat, 09 Mar 2024 18:02:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710036177; x=1710640977; darn=vger.kernel.org; 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=RAsyNx9RRvHmqpg8IRE0aWW1qLeMnDq+gZ1NcfQF3s8=; b=X9TpsZSLNeX4c2jm0indVSob6J5r2hFmVEIzlSP3DiuWS/GBoiktOMinlDnnfE1W0p C7e3qy22YGy9ubPLcz7ox9aYgojIk5GCH024C7x3h5gwrmVitkfgSUAh1WYyAg4NBrHI hLNupXqGn8giiTTjgvhL7D9GEam78890U7l0cBTtTGcoxlxGIrXBcij8pZAy+32kVSRI N3q8cZV+wjLOm8OCDdoKZa0lZ3ULc2yj4eMxVhM8fmd3dzM7g5gZp8pGDyydOzv4DJCO TDTvyITE1Y86lk40REBJrkzYdsb0sWA1TYotJoYcik+86mvQeWtFbntvQ7PoIvG+7k/1 1UUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710036177; x=1710640977; 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=RAsyNx9RRvHmqpg8IRE0aWW1qLeMnDq+gZ1NcfQF3s8=; b=gEupf7EkW7NU5mgZ3/c0xrYMpD5U3Tha7L+e/AnT7q+4TgFCU58xgzwV/JaBj3QiBR 2MoTds6UXGFvd0EwgVYiTRcm+vkDcH36eYGMAs57dibHl5RhwOnyRRMbszEN79z6p7jk /ygNJrkHJQwKLt2m4f78zGAdsRsA7ODuzdAYttb3hH0QQkCkZGxYG1QsdVQwcHxGhzhQ BPV5qSbhCvlQBUGTvTu3BBhHF529nQunAOy+TWnLLRYRuBA1W15DAtDJnHljTRcci7Yy RjBex2NKYD3+Y3Vvv7sn6S6j978sugEMI10aDxf+EYLi3223dOhI+EjqNgnnxBXNssTj 6DGQ== X-Forwarded-Encrypted: i=1; AJvYcCW1jZphCkAtIMBeIykY5BTgNUOoFzvzrzGM4hT/xky9lYC7ZAJ2e0wAtX9qo8STH69371CkDlOUTzhfAsG2UsMJI6+xR/j3kF9X0+UrwmE= X-Gm-Message-State: AOJu0YzM8tsnOHeSLaUjRaQdaIR9dPk7kr2egn0zwZFnTLAgMDdtfiiS kd1ZLh5r9f55+A/Rl/bGNW0TTEZT/ndoxro/fcnwLAEvK+1vJKMcgleq3c+ZYigdjzUMrJBYdVH BKIt7twGU4hCozR8JLbVcaBLPxHXBwhxAwlM= X-Received: by 2002:ad4:5767:0:b0:690:b863:6ac9 with SMTP id r7-20020ad45767000000b00690b8636ac9mr7353457qvx.27.1710036177523; Sat, 09 Mar 2024 18:02:57 -0800 (PST) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <8dbd0dcc292cf15105d09f48c573f7a5.legale.legale@gmail.com> In-Reply-To: <8dbd0dcc292cf15105d09f48c573f7a5.legale.legale@gmail.com> From: Julian Calaby Date: Sun, 10 Mar 2024 13:02:45 +1100 Message-ID: Subject: Re: [PATCH v9] Add JSON output options to 'iw' for scan results To: Isaev Ruslan Cc: Johannes Berg , linux-wireless@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Isaev, On Sun, Mar 10, 2024 at 12:44=E2=80=AFPM Isaev Ruslan wrote: > > v9 changes: > - remove binary json/iw_json_printer > [snip] > > Signed-off-by: Isaev Ruslan > --- > ...utput-options-to-iw-for-scan-results.patch | 3773 +++++++++++++++++ > Makefile | 2 +- > iw.c | 27 +- > json/Makefile | 19 + > json/iw_json_print.c | 221 + > json/iw_json_print.h | 35 + > json/json_writer.c | 298 ++ > json/json_writer.h | 76 + > json/main.c | 49 + > scan.c | 1187 +++--- > util.c | 333 +- > 11 files changed, 5281 insertions(+), 739 deletions(-) I think you need to work on your git processes. First things first: please consider staging your changes before committing and inspecting what you're committing there. It's a really good way to catch "silly" mistakes like "git add"ing the wrong file, etc. My process if I were working on this patch would be something like this: 1. Make changes to files 2. git status - note files that need to be staged 3. git add file1.c file2.h 4. git status - verify the files I've added are the correct ones and that I haven't missed anything 5. (optional) git diff --cached - verify the changes I've staged are all correct and make sense 6. git commit --amend - amend my commit with the latest set of changes 7. git format-patch -v 9 origin/main - generate patches for my branch 8. Send email with the patches generated in step 7 I also tend to delete the patches generated as soon as I'm done with them so I don't get confused about which ones are which version. Secondly: if you're using "git add --all" or "git commit -a" or "git add *" or something like that which commits or stages all files in the directory, please don't. You'll do less revisions of the patch and produce better patches for upstream if you spend the time to check your changes at every step. Finally: please add generated files to the .gitignore file (if there is one) this tells git to ignore those files and it won't report them in "git status" and won't stage or commit them. "git status" being "clean" with no untracked files or changes is a really reassuring way of knowing that your directory doesn't have any unexpected changes or anything like that and it also helps out with stuff like this. Thanks, --=20 Julian Calaby Email: julian.calaby@gmail.com Profile: http://www.google.com/profiles/julian.calaby/