Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp641051ybl; Fri, 16 Aug 2019 01:29:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqyHt0f4eAatkLvJwIjX/sdUu6ua7uLJoPK/hQCoA0LK1PR/6/zyxeOQubHXzJL2cmRk5lVw X-Received: by 2002:a62:174a:: with SMTP id 71mr9972355pfx.140.1565944193449; Fri, 16 Aug 2019 01:29:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565944193; cv=none; d=google.com; s=arc-20160816; b=gOQhCCsIVE7N5Xz75H++Zos/9KaX8aZ2fT3nhJSfVV472yS22mJg9PEh05pN4xtOFT FScO0egVGuRzlNDvHkFGR5xgYI2vipsCOPAGAYs3grUZ6AVwgwqEVa13WCi7h9dSkegr AI9PkpHJ4Yw4MT1GsCebNteW0UEG/G2o81tk/1B8K92mszKKYvrZ9k1lAaDliVJnklMR LFimlGpmz0ZISE4xFr5yZV0886dVi9nOw2wNK+KifdSb6GXKWDfNGntNNuUP6n3poeF6 /AcyWifJsDHX936ttVOLRoyaTHK+bIkMfP52eudaOtYa+POMP897ZxCHZZcMftCvmTuU +eAA== 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=wBLao4dF7fvlpZx9681qGG6IVohD606NPbz8GNwQifE=; b=N+jKz08W+BT4CN+fssU6nhWRHdI2xP0E3dHRcDwsw7E9RPGEhVpWeSfVF30Jr0ZJP4 N7OWf1TKWoejRv31n0wjuSbyJthbfJx52RElpsJs7AlerWC7GcopetUVabk7lqZV4kYr mTjBCgpEJ14wVJ6lgpwIrbBJ87f78N52wNRbp6J9Wd/yxDZHLHenytiLzvV3eCjFT4Hd /u8pz45blgm1Fz75a1tE8wHAjQppm6ZflgEARW9+7TsAXIoDAf4dwWhobYMYOL86cpfc mO/N4e+wu4yp6J+/URk+K+fv+D+cfVW3s2DOFYhRXGC9QOe8d0F00q+RMtaQoBcweowK 190g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w19si2329928pfi.248.2019.08.16.01.29.35; Fri, 16 Aug 2019 01:29:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726948AbfHPI1y (ORCPT + 99 others); Fri, 16 Aug 2019 04:27:54 -0400 Received: from mx2.suse.de ([195.135.220.15]:43054 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725945AbfHPI1y (ORCPT ); Fri, 16 Aug 2019 04:27:54 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 79DA6AFC3; Fri, 16 Aug 2019 08:27:53 +0000 (UTC) Date: Fri, 16 Aug 2019 10:27:53 +0200 From: Petr Mladek To: Chuhong Yuan Cc: Sergey Senozhatsky , Steven Rostedt , LKML Subject: Re: [PATCH v4 4/8] printk: Replace strncmp with str_has_prefix Message-ID: <20190816082753.wvaj7hzn4zu3jgjd@pathway.suse.cz> References: <20190809071034.17279-1-hslester96@gmail.com> <20190814104941.qt66ozcau5fdswcs@pathway.suse.cz> <20190815075033.GA26479@tigerII.localdomain> <20190815135221.qcgerido7aahmpgn@pathway.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170912 (1.9.0) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 2019-08-15 23:33:01, Chuhong Yuan wrote: > On Thu, Aug 15, 2019 at 9:52 PM Petr Mladek wrote: > > > > On Thu 2019-08-15 16:50:33, Sergey Senozhatsky wrote: > > > On (08/14/19 12:49), Petr Mladek wrote: > > > > On Fri 2019-08-09 15:10:34, Chuhong Yuan wrote: > > > > > strncmp(str, const, len) is error-prone because len > > > > > is easy to have typo. > > > > > The example is the hard-coded len has counting error > > > > > or sizeof(const) forgets - 1. > > > > > So we prefer using newly introduced str_has_prefix() > > > > > to substitute such strncmp to make code better. > > > > > > > > > > Signed-off-by: Chuhong Yuan > > > > > > > > Reviewed-by: Petr Mladek > > > > > > Reviewed-by: Sergey Senozhatsky > > > > Chuong Yuan, should I take this patch via printk.git? Or will > > the entire series go via some other tree, please? > > > > I think that it goes via printk.git is okay, thanks! The patch is commited into printk.git, branch for-5.4. Best Regards, Petr