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=-0.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, 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 7AB6AC43331 for ; Thu, 26 Mar 2020 20:13:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4FCC5206E6 for ; Thu, 26 Mar 2020 20:13:31 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="FSqcZVqv" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726540AbgCZUNa (ORCPT ); Thu, 26 Mar 2020 16:13:30 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:60062 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726363AbgCZUNa (ORCPT ); Thu, 26 Mar 2020 16:13:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=zwAVpJjqPLq6MNjNDRRsQrtVSOVks/wsW0vawmy5I7M=; b=FSqcZVqvG+4ObFQxnM5G6yMi7O EaRdqLRt4IZCBSs967tq9jqR77bXOKAzbrrV4qfB7maXYu/RXBJWPLYByKO4FeJ+3aofZruSiuzvO L4sHuZEERWMA/AdVRqyU77if1nwI6FmqNrwz+09q+NTufDsoBf81h9+gr8pqrvnu20AE=; Received: from andrew by vps0.lunn.ch with local (Exim 4.93) (envelope-from ) id 1jHYsI-0002vn-OE; Thu, 26 Mar 2020 21:13:10 +0100 Date: Thu, 26 Mar 2020 21:13:10 +0100 From: Andrew Lunn To: Joe Perches Cc: florinel.iordache@nxp.com, davem@davemloft.net, netdev@vger.kernel.org, f.fainelli@gmail.com, hkallweit1@gmail.com, linux@armlinux.org.uk, devicetree@vger.kernel.org, linux-doc@vger.kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, kuba@kernel.org, corbet@lwn.net, shawnguo@kernel.org, leoyang.li@nxp.com, madalin.bucur@oss.nxp.com, ioana.ciornei@nxp.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next 7/9] net: phy: enable qoriq backplane support Message-ID: <20200326201310.GB11004@lunn.ch> References: <1585230682-24417-1-git-send-email-florinel.iordache@nxp.com> <1585230682-24417-8-git-send-email-florinel.iordache@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-doc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-doc@vger.kernel.org > > +static int qoriq_backplane_config_init(struct phy_device *bpphy) > > +{ > [] > > + for (i = 0; i < bp_phy->num_lanes; i++) { > [] > > + ret = of_address_to_resource(lane_node, 0, &res); > > + if (ret) { > > + bpdev_err(bpphy, > > + "could not obtain lane memory map for index=%d, ret = %d\n", > > + i, ret); > > + return ret; > > This could use the new vsprintf %pe extension: Hi Joe Probably a FAQ. But is there plans to extend vsprintf to take an int errno value, rather than having to do this ugly ERR_PTR(ret) every time? Format string %de ? Andrew