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 X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C4E18C433E0 for ; Fri, 19 Mar 2021 11:44:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9504D64F6D for ; Fri, 19 Mar 2021 11:44:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229926AbhCSLn4 (ORCPT ); Fri, 19 Mar 2021 07:43:56 -0400 Received: from mx2.suse.de ([195.135.220.15]:35660 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229806AbhCSLnz (ORCPT ); Fri, 19 Mar 2021 07:43:55 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1616154234; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=6XavM+VwOLTEyzDfW0LHTRkD6JR3SUxqoyIvE6dwWw0=; b=PBigIA6gqdnbUdaBaEJ7C1obmLo7EwCX4sGPjPWGEsM3tYFAJcgCPe/oDgbp86P2Lcd4nD hE0MuASM3hEiIYKgnBYvE12En0LpLtwtPwFcdCY8gWlIr/Jw2SJRdJYHsvJaS2OizZYv88 XMHvcWTphUn/6e6UU1TzP3dlxRAU2eU= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 177B5AE05; Fri, 19 Mar 2021 11:43:54 +0000 (UTC) Date: Fri, 19 Mar 2021 12:43:53 +0100 From: Petr Mladek To: Rasmus Villemoes Cc: Chris Down , linux-kernel@vger.kernel.org, Sergey Senozhatsky , John Ogness , Johannes Weiner , Andrew Morton , Steven Rostedt , Greg Kroah-Hartman , Kees Cook , kernel-team@fb.com Subject: Re: [PATCH v5] printk: Userspace format enumeration support Message-ID: References: <02c3b2f3-ff8e-ceb9-b30b-e533959c0491@rasmusvillemoes.dk> <5ea3b634-5467-35cf-dd08-1001f878b569@rasmusvillemoes.dk> <226a276d-2018-b419-4a6b-3ab21d3e4584@rasmusvillemoes.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <226a276d-2018-b419-4a6b-3ab21d3e4584@rasmusvillemoes.dk> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 2021-03-18 12:31:44, Rasmus Villemoes wrote: > On 18/03/2021 11.46, Petr Mladek wrote: > > > BTW: Is the trick with int (printk)(const char *s, ...) documented > > somewhere? Is it portable? > > It is completely standard and portable C, explicitly spelled out in the > C standard itself. C99: Thanks a lot for the detailed info. I still prefer to avoid using this "trick". But I am not going to block it if more people would prefer it. Best Regards, Petr