From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 97CC5436AC; Fri, 8 Dec 2023 18:15:56 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A44EF43001; Fri, 8 Dec 2023 18:15:55 +0100 (CET) Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) by mails.dpdk.org (Postfix) with ESMTP id ECF3F42FF3 for ; Fri, 8 Dec 2023 18:15:53 +0100 (CET) Received: by mail-pj1-f51.google.com with SMTP id 98e67ed59e1d1-286d701cabeso2353030a91.3 for ; Fri, 08 Dec 2023 09:15:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702055753; x=1702660553; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=eMZG9qEPxWA4AdsSy7+T4TEyNNLgYC56VC9zI+OG8Uc=; b=wJgs1RJBSwCamZsH+UkDWfIQLbMWxqKpTQ/lqcNH9S29qCRvtsGkQaDL+Lpv/GsDKF rgISeCGyb8IswVQG4JLNjBYcYx6UZhicwldTKfEWTAnXxCkAnGHUlE3OiRe4bKgdoGBX KynsvCCqEJNtVGFn38KJ/iLQOVAP5HV62qjX7rUMkKRx2jx0AZZQE8ilGacY2ff1zhfZ vzVg0XW+49RV7z2oNE/Y+lOfOrxSBzAqLH1TotaXbmwUsMQ8pdf1HxbJCIcStyUc5ob3 eI8p9wX1oaj6R8kF56ixWwceJWVrtZeyAlXpdZ2j9zTCiz5JrOF7zZU8a8BXipwi9xLe xW3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702055753; x=1702660553; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eMZG9qEPxWA4AdsSy7+T4TEyNNLgYC56VC9zI+OG8Uc=; b=pZRGS9cWWtlHTe9TsITAzLGVwims9BVut0bfI3NnDWNXhC5WmauCiWGYMemmCBd12b nVrEHTlPdjZKfwRvCOoxKrUtuK4RASSSXUJofUuMTLbOD1NSa1IkdhR13tfS/lSRUVIb MRZ20uGAQMo4r/Q2i4dF0DlnVPSlKsr0yo+R3jyUVpzzX58zl/H/3muIbt6doL3xk3Gs oX+6pGDpluNx6P1ABTQu807R0HoNeGgsMbRCHjQwUcTW1jxvoIEE7GWms7lvLnpAqWyk KIXrmTAPP/RSjhpaj2AV90s0hQ21q07Hz4bl8k1HeuYb//WEQXv3PJdBnFx60aylBZvl UQ/Q== X-Gm-Message-State: AOJu0YzZ0NehCLRtMpAqMEn5s8iWom1aNDL3e8dupd4q2kjCYWP7h+AK LZZsFQ39T6bLGR7QT6dcmq3pwQ== X-Google-Smtp-Source: AGHT+IGeKmf+p8zRPiP6Pszwry3YoPk2e5GUmuENYZvHQYzHjV37neULiND2u4iGt9jWDEUcNq308A== X-Received: by 2002:a17:90b:4a8f:b0:286:f16c:cb03 with SMTP id lp15-20020a17090b4a8f00b00286f16ccb03mr412495pjb.45.1702055753053; Fri, 08 Dec 2023 09:15:53 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id ot15-20020a17090b3b4f00b00280070a2613sm3561767pjb.51.2023.12.08.09.15.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 09:15:52 -0800 (PST) Date: Fri, 8 Dec 2023 09:15:51 -0800 From: Stephen Hemminger To: David Marchand Cc: dev@dpdk.org, thomas@monjalon.net, ferruh.yigit@amd.com, bruce.richardson@intel.com, mb@smartsharesystems.com Subject: Re: [RFC v2 11/14] log: add a per line log helper Message-ID: <20231208091551.75590a5e@hermes.local> In-Reply-To: <20231208145950.2184940-12-david.marchand@redhat.com> References: <20231117131824.1977792-1-david.marchand@redhat.com> <20231208145950.2184940-1-david.marchand@redhat.com> <20231208145950.2184940-12-david.marchand@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Fri, 8 Dec 2023 15:59:45 +0100 David Marchand wrote: > gcc builtin __builtin_strchr can be used as a static assertion to check > whether passed format strings contain a \n. > This can be useful to detect double \n in log messages. > > Signed-off-by: David Marchand Good idea. Acked-by: Stephen Hemminger