From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 21A59C4332F for ; Wed, 19 Oct 2022 20:05:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230329AbiJSUFt (ORCPT ); Wed, 19 Oct 2022 16:05:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229937AbiJSUFs (ORCPT ); Wed, 19 Oct 2022 16:05:48 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66F5618BE0F for ; Wed, 19 Oct 2022 13:05:44 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 477F7619AC for ; Wed, 19 Oct 2022 20:05:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E8F1C433D6; Wed, 19 Oct 2022 20:05:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666209943; bh=eUJMv7fnTzYOk95G780BJAyyUPBRtC5XCITmLvYem0M=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ja7uiFdTNE6Zsh0GDXSJ5Ul65zxleyb5hPbP7QCZIV28EsdMCH5C/2dRBnwmtn5Fj KdFLIPaIeQUrPzZwQ+xvPTQmej/eZItU4QvKesOu/+FH4zTKL/Vcs5NEHoEXslB2wG ss0z1ezoPAr3eUV3msHMxmAybh1kX1UQxTJ9iZBNcJowUfcZhSDRPusUbQuc9y2FG9 /rcKp1va1uI6MDplOJzCcECKuIZd/wntepBMy50nyQnyxL/uw8p0QKM8hGQ9qH2ZF9 W6+rTlxd7hAx/kPv9lD3tuUEY2d0EnceDo6NcdDfbknhWrUMs5uUjmjTXlQAazYF7K v0ocV19tk3vNg== Date: Wed, 19 Oct 2022 13:05:42 -0700 From: Jakub Kicinski To: Cc: , , , , , , , , , Edward Cree Subject: Re: [PATCH v3 net-next 1/3] netlink: add support for formatted extack messages Message-ID: <20221019130542.3879a64c@kernel.org> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Tue, 18 Oct 2022 15:37:27 +0100 edward.cree@amd.com wrote: > Include an 80-byte buffer in struct netlink_ext_ack that can be used > for scnprintf()ed messages. This does mean that the resulting string > can't be enumerated, translated etc. in the way NL_SET_ERR_MSG() was > designed to allow. I only read the code not the message yesterday, but FWIW I think the translation problem is surmountable within the format string itself. But let's worry about that if someone actually comes forward and wants to work on the translations :/