Article View: linux.kernel.git
Article #662Re: [PATCH] sideband: skip unrecognized allowControlCharacters keywords
From: Tuomas Ahola
Date: Fri, 16 Oct 2026 14:25
Date: Fri, 16 Oct 2026 14:25
16 lines
7312 bytes
7312 bytes
"Thomas Bachem via GitGitGadget" <gitgitgadget@gmail.com> wrote:
> + warning(_("unrecognized value for '%s': '%.*s'"),
> + var, (int)(end - value), value);
> + value = end + !!*end;
> + }
Reading CodingGuidelines, it seems that `!!` is a construct we would
like to avoid:
- Some clever tricks, like using the !! operator with arithmetic
constructs, can be extremely confusing to others. Avoid them,
unless there is a compelling reason to use them.
--Tuomas
Technical Details
Message-ID:
<20261016142515.T1gr4%taahol@utu.fi>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-72228-linux-kernel-git=dewy.ruReferences:
<pull.2261.git.1792154374653.gitgitgadget@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-72228-linux-kernel-git=dewy.ru From: taahol@utu.fi (Tuomas Ahola) Newsgroups: linux.kernel.git Subject: Re: [PATCH] sideband: skip unrecognized allowControlCharacters keywords Date: Fri, 16 Oct 2026 17:25:15 +0300 Organization: Usenet Network Message-ID: <20261016142515.T1gr4%taahol@utu.fi> References: <pull.2261.git.1792154374653.gitgitgadget@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Info: usenet.network; logging-data="2792247"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:CPVVxkR7TTP+LgdeHzAaCFnAzNQ= sha256:K7KBCxtz8R7cv0XUrOlKhIEzOs3oMmxbGR3Bw2rGXJM= sha1:9j0hFcuxL/phwO85LSKS2p7kMN0= sha256:/gIVl41HRD8/W7eoFlMNrHC+6yA96E8/s2rV1MNba7Q= List-ID: <git.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id C0CD6110545; Fri, 16 Oct 2026 17:45:15 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.149 X-Spam-Status: No, score=-3.149 tagged_above=-9999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=utu.fi X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DfzClaa3o4Ms; Fri, 16 Oct 2026 17:45:09 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=git+bounces-72228-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=utu.fi X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id 437AF110534; Fri, 16 Oct 2026 17:45:00 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sto.lore.kernel.org (Postfix) with ESMTP id C17B8610570; Fri, 16 Oct 2026 14:40:53 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DC5DF3546E9; Fri, 16 Oct 2026 14:40:43 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=utu.fi header.i=@utu.fi header.b="OO0V+hVE" X-Received: from fortymile.utu.fi (fortymile.utu.fi [130.232.247.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6CEE0257845 for <git@vger.kernel.org>; Fri, 16 Oct 2026 14:40:38 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=130.232.247.4 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792161642; cv=none; b=j5klVPakIt5kVpS54xa2pK/oL3VuTq0v+vej8O6/jwU2+hVe1OTQc69UnIryLMVQswod/Jst7/HjDnfT+Jtnxdwyhawf1hVCHw167Ip4HnXWSKwvhad9wRLZZxmtMbHKuPwGzzq7f1qTas2r/Vw37vDU+zq9r0ubwzTbXq4kLnI= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792161642; c=relaxed/simple; bh=Rn1WF90kucoKBWN5r074ygFzc/xmHQrV/TdICPQn4lw=; h=Date:From:To:CC:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=X1Nj4qdgCQQ+xZKeHwkHh1xJXM1vFOsJ6Cn0aEIXcwlplMSH5MzWdjDgKxFp2D/tmt+bFnfVavOr9QXyZbi+cfOXIEGhtYbVGJ5+UJvVCh9hlX2z8hp6idToJYFWgvjzLVBv+vTbV4iZrslnbaE3/p4yyyJ/VGPjGgtgdMZE0pM= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=utu.fi; spf=pass smtp.mailfrom=utu.fi; dkim=pass (2048-bit key) header.d=utu.fi header.i=@utu.fi header.b=OO0V+hVE; arc=none smtp.client-ip=130.232.247.4 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=utu.fi X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=utu.fi X-Received: from smtp-04.utu.fi (smtp-04.utu.fi [130.232.207.47]) by fortymile.utu.fi with ESMTPS id 69GEPG5w016451-69GEPG60016451 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 16 Oct 2026 17:25:16 +0300 X-Received: from ex19-06.utu.fi ([130.232.247.46]) by smtp-04.utu.fi with esmtps (TLS1.2) tls TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from <taahol@utu.fi>) id 1xHis0-009YGc-2x; Fri, 16 Oct 2026 17:25:16 +0300 X-Received: from localhost (86.50.95.90) by ex19-06.utu.fi (130.232.247.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.53; Fri, 16 Oct 2026 17:25:15 +0300 X-Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 6b446bbe; Fri, 16 Oct 2026 14:25:15 +0000 (UTC) X-CC: <git@vger.kernel.org>, Johannes Schindelin <Johannes.Schindelin@gmx.de>, Junio C Hamano <gitster@pobox.com>, Thomas Bachem <mail@thomasbachem.com> X-In-Reply-To: <pull.2261.git.1792154374653.gitgitgadget@gmail.com> X-User-Agent: s-nail v14.9.22 X-Precedence: bulk X-Mailing-List: git@vger.kernel.org X-List-Subscribe: <mailto:git+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org> X-ClientProxiedBy: ex19-04.utu.fi (130.232.247.44) To ex19-06.utu.fi (130.232.247.46) X-FEAS-BEC-Info: WlpIGw0aAQkEARIJHAEHBlJSCRoLAAEeDUhZUEhYSFhIWkhZXkguLT4lWFxYWFhYWFBeUVxfSFhISFlbSBwJCQAHBCgdHB1GDgFIWUhaWkgPARwPARwPCQwPDRwoDwUJ AQRGCwcFSFhIWkhZXEhZW1hGWltaRlpYX0ZcX0hQSFhIWEhdSFhIWEhYSFlRSA8BHCgeDw0aRgMNGgYNBEYHGg9IWEhaWkgPARwPARwPCQwPDRwoDwUJAQRGCwcFSFhI WV9IDwEcGxwNGigYBwoHEEYLBwVIWEhaXkgiBwAJBgYNG0Y7CwABBgwNBAEGKA8FEEYMDUhYSFpZSAUJAQQoHAAHBQkbCgkLAA0FRgsHBUhY X-FEAS-Client-IP: 130.232.207.47 X-FE-Last-Public-Client-IP: 130.232.207.47 X-FE-Policy-ID: 3:5:2:SYSTEM X-FE-Hostname: fortymile.utu.fi X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; d=utu.fi; s=out-utu-v3; c=relaxed/relaxed; h=date:from:to:cc:subject:message-id:references:mime-version:content-type; bh=zGIyJ8uhmJEA6nHBU/hT9qVgfeSiY33CBnt4WmIXlhQ=; b=OO0V+hVEZlKAT0loUeYbipKULCNZMvppa/nT69/1kA+pj8eunUDQRIjjYbXOsMzNUIYAsxH16c9y mojMAWDesfBjwaZWZGElrdyNmjSiNw8RNjy/bdgb/C4ywYTkEZUC+62vh5wVTPTxSiQnE7XLzX9V RHTouSa0+0duuD2T56e4gdBMn1tilQXi30HSFgoL1G9SVJWWtl26aE0X/eMQ+Kr+iNhzScYAovY5 Z0265gs1+OdA2mZuNeqtu+QcIoexg9lpKCicdQVRHegwNVrSQ3R6FdF/aPePbio5xv1EfG/OS2zS rFVJqcEXd9ISLP7f6qyEf2DGN2112LZoDzKHDw==