Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2387589ybt; Tue, 16 Jun 2020 05:00:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSpdTrF33Vos1WnDDnjrgsYE/ak92gPLuNx/fI49L1aqWIFksxuz2+W8VbeSgabnQtxfw8 X-Received: by 2002:a17:906:9381:: with SMTP id l1mr2505422ejx.380.1592308804026; Tue, 16 Jun 2020 05:00:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592308804; cv=none; d=google.com; s=arc-20160816; b=yDvWykqS6e79KRclAhl863h2mVP/xCTSxPpg/So7KwUD9sCFJ8X/8eQzIo6UA1S9LL f9rWXVaH4oGOT/F6slunTLL+6Yc9rAgm4qXsQlsfNt24x+XnpF3FStJGME0rHy1wmKWE sYi05/dR9X9lMfi7orBES9yXoQ2xLFKaotpZZCELw4Wq6dwsqZVfaDsQRyR3JJcMZd7f +ci7PPwehgaFWkbrRWBQVCv4P4zXmx6VOgsE4kRrDMfS18F60Cs6wcZWainw/uQ/fcug j0jC4veCCF4kwOVfRosIY1wiwWj9MeaRjivU5/BEjdjF7ThBZK4WJBX6NAJ+jO+fjkx4 JwAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=WY0scIQcVBHDQV4S+cGHwi1xQfsWBpMsMPC9wzAelrY=; b=ZTHmxL39HfJIGD8ehiVZiZEuK+iRtSBf+a0dq3kOTvpsrNv0e2x4uqOzkgp5BdSPvP WF8phUWFwjVdSoek1bl5Q8nd8Q7m5RLlAnT4bAd+Y/zysSH1X9cfmWVxaP0rsJ5JcVWN TWOS1QKC7J/hpf1R5mGjHeBY1pK1UEwcfMyM41C3m0JFhCT9LLKDLivgUPIq67ig8LLN j6GYE6/wLt63DE7ieffQg0I2B+2EFeQaqBS9tZyoZE/78YOrKT5c9dMVsFKDwEq0M13T 1vRHgBrNi7udvliAFHyeGZDNLbJRbqyYRkxGM5A7RKwOtCqtmHP3FYA5dv//fgfD3YB2 bNsw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q5si10463927edw.228.2020.06.16.04.59.41; Tue, 16 Jun 2020 05:00:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728641AbgFPL53 (ORCPT + 99 others); Tue, 16 Jun 2020 07:57:29 -0400 Received: from mx2.suse.de ([195.135.220.15]:46976 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728144AbgFPL53 (ORCPT ); Tue, 16 Jun 2020 07:57:29 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 24FCEAD41; Tue, 16 Jun 2020 11:57:32 +0000 (UTC) Date: Tue, 16 Jun 2020 13:57:27 +0200 From: Petr Mladek To: Jim Cromie Cc: jbaron@akamai.com, linux-kernel@vger.kernel.org, akpm@linuxfoundation.org, gregkh@linuxfoundation.org, linux@rasmusvillemoes.dk Subject: Re: [PATCH v2 19/24] dyndbg: accept query terms like module:foo and file=bar Message-ID: <20200616115727.GN31238@alley> References: <20200613155738.2249399-1-jim.cromie@gmail.com> <20200613155738.2249399-20-jim.cromie@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200613155738.2249399-20-jim.cromie@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat 2020-06-13 09:57:33, Jim Cromie wrote: > Current code expects "keyword" "arg" as 2 space separated words. > Change to also accept "keyword:arg" and "keyword=arg" forms as well, > and drop !(nwords%2) requirement. > > Then in rest of function, use new keyword,arg variables instead of > word[i],word[i+1] I like the idea. But please allow only one form. IMHO, parameter=value is a common way to pass values to commandline parameters. Note that "keyword" and "arg" is strange naming, especially "arg". Best Regards, Petr