Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp221789rdb; Thu, 21 Dec 2023 07:26:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IHmss+cQTGZ0ZE3d3KJthyYXOXDINX/LT3ORnbwWJ5cncKgREikNopDcWjz6U8kflfq1fT5 X-Received: by 2002:a05:6871:3411:b0:204:20b:2de with SMTP id nh17-20020a056871341100b00204020b02demr1813665oac.35.1703172414480; Thu, 21 Dec 2023 07:26:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703172414; cv=none; d=google.com; s=arc-20160816; b=yW5AsAHI8JcUE+GHwvI7nF8Y3LIG5tRTn2Me7Zmo4gZ9HsPNBfRAdeU6F2g56pkVTA Rcaqv4X2E+xvSBJWtpCv3mGyVoM78fBVWoZ1FqpE5FcKp/pPXhdVJybocRVFVTVQPCNd QbV+xkjsMpp1J0LqWK25eUsDQVw1ETk8sdkhfTT2ngAsUWv0h3Ss+I8ImfujPjHbVTI6 zekuEKMQyNwVYyYCKy5IBQJ0QWnS2N5HN/fyOiA61cU3FxdTAzoFZcVxtKT487pHYtkF WAgH55ky3xRqmjg1+h7BA7vZIDtEgYbexhhlb4zB+bY+bdQ+SFTNYhjkBhQ9EMj8JTrW +xJQ== ARC-Message-Signature: i=1; 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=sTc60XXBlmPn1aI05CMP8r4opL7x1haFLl5cOZ/ZbGI=; fh=EyfWyfMlqUQN5oN6BSprtsfs61Y1xCoSjh3qp31JBfs=; b=KdCxyfYw+mWrSNvQeLLsk20/d9Ye4cQZ8YgpjXpyqQkRKUDUWTeixw98CEF9xIwuce 2sgMntXv2E80MIqeXZye235axeQLq4H6zW+Wg+LjZMpBXlo4Mzi2ksFw9rKlMClAtJB0 CKmcj+CtdCWYYuj1yPYNNdyw/V9GFVjMK1gXB4+8nxOqyLk0QBLpHlnr1NG/9cMW5xko fj/7k0nBMrXV5/bUMcqvkrV1wNIDX8jnY4r+CWWF5MCOw/y77B/q7Kq6H6QCUmAYsGsP AlrBMOOCEobWGpe677Ofh5UXV6p7j2Gr1192zzjwEI/6vC6Lw89jEGQqKiBLOIRQ1vw2 Kgfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf.com header.s=google header.b=EC5osMho; spf=pass (google.com: domain of linux-kernel+bounces-8654-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8654-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=semihalf.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id v5-20020a056102302500b00466a08c1622si353715vsa.3.2023.12.21.07.26.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 07:26:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8654-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@semihalf.com header.s=google header.b=EC5osMho; spf=pass (google.com: domain of linux-kernel+bounces-8654-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8654-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=semihalf.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 282A01C2094B for ; Thu, 21 Dec 2023 15:26:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 83EA955E68; Thu, 21 Dec 2023 15:25:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=semihalf.com header.i=@semihalf.com header.b="EC5osMho" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) (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 763E1539EA for ; Thu, 21 Dec 2023 15:25:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=semihalf.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=semihalf.com Received: by mail-lf1-f43.google.com with SMTP id 2adb3069b0e04-50e39ac39bcso1223090e87.3 for ; Thu, 21 Dec 2023 07:25:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf.com; s=google; t=1703172323; x=1703777123; 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=sTc60XXBlmPn1aI05CMP8r4opL7x1haFLl5cOZ/ZbGI=; b=EC5osMhowcCpdp+KcMiNXv8VAUmTkyMV5hsCdjbLXd5CgBslC/f3Tb7NaqTUJF7XgJ rQvUmmGOyySDgrgO2gHtn0XhlEDKP7UjZRJWKD4nHZQojaKiwpsuyDx6QyRK/aFOQYos 23ZAKDNnEP8V4OGgcTh3qc6Lv5Fsu8d8jkAdZ1OqyrIo2fr0S1v3cEhLsFr8j1lyRWyQ M6Vyvlt+tUMZmfoDZyuFL1UgFomdKkxN8pO+fIeXfkGXqTau2dBaeMerqGrk2i8L68hU Xs6fQaG46W1vuTt0EU2RlL6RDZpkx+ZwBcNCavDdXLoEW2F078+jfupQ2fFYo4caWR60 OKQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703172323; x=1703777123; 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=sTc60XXBlmPn1aI05CMP8r4opL7x1haFLl5cOZ/ZbGI=; b=WypoWt1QUMqw2HMp7SszwZy01Fjo1Kz+zngwTcSTsejcV6oKTSJjro9oSqtwPwaH3R fOxBZTeio2qmaLdITRXSZiN20C7cAI5Lo6hurAklQf/aaXTNJL2wfTuXWmxlUX8J1I6W bYUPZf4bdrBP09hy3VFA6mjiamAXL6tr+eB8kquDZoFW1nW+c/u/mhmQ7UnV4ee55w9D t5WqCaTd1XTq+kW2NizCvi3TSk+8hIC9YIN4tSy7/HkQFetZA76+oln3GMvHlk7yD2Eh HM7J+kWn5Ncsd5LWtFvDOVHPJHHeANpB+PRWgRRa/qTxRxH12VImrX/o2WKTDU4OcZ2R 0axA== X-Gm-Message-State: AOJu0YzxtRUl5H/FcFBIO7BEnFm54n/Z2L0bsNqzdBD/2H8bYan2hh6B Y/7QKAub6Ak9/TYw1DHJlJxAhFpnmHhNcYiQRgG6 X-Received: by 2002:ac2:4c43:0:b0:50e:cf8:b168 with SMTP id o3-20020ac24c43000000b0050e0cf8b168mr4335698lfk.208.1703172323269; Thu, 21 Dec 2023 07:25:23 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: In-Reply-To: From: =?UTF-8?Q?=C5=81ukasz_Bartosik?= Date: Thu, 21 Dec 2023 16:25:11 +0100 Message-ID: Subject: Re: [re: PATCH v2 00/15 - 07/11] dyndbg: __skip_spaces To: Petr Mladek Cc: Jim Cromie , linux-kernel@vger.kernel.org, akpm@linux-foundation.org, bleung@google.com, contact@emersion.fr, daniel@ffwll.ch, dianders@chromium.org, groeck@google.com, jbaron@akamai.com, john.ogness@linutronix.de, keescook@chromium.org, ppaalanen@gmail.com, rostedt@goodmis.org, seanpaul@chromium.org, sergey.senozhatsky@gmail.com, upstream@semihalf.com, vincent.whitchurch@axis.com, yanivt@google.com, gregkh@linuxfoundation.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable pon., 18 gru 2023 o 18:17 Petr Mladek napisa=C5=82(a): > > On Thu 2023-12-07 17:15:10, Jim Cromie wrote: > > This private version treats a comma like a space. > > Please, make it clear that this patch adds a new function. > Also please explain why it is needed and what are the effects. > > > Its not known necessary ATM, but seems prudent. > > It might be that I am not a native speaker but I can't parse > the above sentence at all. > > What is not known? > What is prudent? > > > > Signed-off-by: Jim Cromie > > --- > > lib/dynamic_debug.c | 12 ++++++++++-- > > 1 file changed, 10 insertions(+), 2 deletions(-) > > > > diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c > > index a380b8151dd8..c974f6e19ca1 100644 > > --- a/lib/dynamic_debug.c > > +++ b/lib/dynamic_debug.c > > @@ -628,6 +628,14 @@ static int ddebug_change(const struct ddebug_query= *query, > > return nfound; > > } > > > > +char *__skip_spaces(const char *str) > > +{ > > + str =3D skip_spaces(str); > > + if (*str =3D=3D ',') > > + str =3D skip_spaces(++str); > > + return (char *)str; > > +} > > The function should not be called "skip_spaces" when it skips also > characters which are not typical white-space characters. > > Also the "__" are usually used the other way around. func() > is usually a wrapper around __func(). > > Please, use another name. If you can't find a good name then > it suggests that the design is bad. The result would likely > be hard to understand and maintain. > I will update the commit based on your comments. Thanks, Lukasz > Best Regards, > Petr > > PS: I am sorry, I do not have time for a proper review. I primary wanted > to check if the patchset somehow affected printk(). And I realized > that I do not understand what the changes are about. The commit > messages and the motivation might make sense only to people who > know the big picture. But I was not able to get the picture > for the changes in dot,comma,space handling.