Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4157793pxb; Tue, 2 Nov 2021 05:14:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzh4Ljr8m6KhUuAbXGM0D5SOJqTgXtA+eDLiyKRN+mY2DAUIq4M9vHTonRYnDXKskT+MgcT X-Received: by 2002:aa7:da10:: with SMTP id r16mr27830218eds.56.1635855267136; Tue, 02 Nov 2021 05:14:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635855267; cv=none; d=google.com; s=arc-20160816; b=IeSp2E6tQW/YXytgCuCN/qmf0rD0iSmmU5VTxplhUZfRm+vXB6/xemq18a9qZNiYkg QNZX/sH61vfL6U2hOWIIUST829z/Z5/uvYP2FYgy+ftSnClD4VEkhpP/Ov/v9zpm2IOJ 31qvsAlhNgkcIInw9xAi1PKANyWHfGVpw3wBjmJYkYkG5GxqgWc/sBUS7pHRSq9H+wed aBHh0/Cdruz7hB8+iTwCG44dRj4JpJy9irjmzaLwAwSn7U/YhfbjfDf6z+LAtzjdSjjl ieUBNdecDq86aR0ykLfkAeDiDC2Gif+hYd1AwGDzZDJHtEECtKKkmVMMD24Kv1Qr8XyV faSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=o6FGnU4FYOY3wyYVmDluYr+k4/2zK3R/YdK8+ZD+B24=; b=ZIsNHbFNIUXn9CY14RSo7O5bYpqO6Uo7nf8To7rhO5kgpTfaH4P4wIHKwqkkV2P6HN MgPZqVjxWe2Tud/OD8QUv1KPH15IQxcKnM12gYpG8SWKLPg1tJVSaNRp70/3iUAsheJC TlGLR6EhBDth7jL69caT2W4y4FXQyJn7U/1sM/AxGV1U8SUMff5PiglUg8ljhIqRhHs1 AiIFdG6IdOHM9dta4WbBEFrsxxAECSBIp76JPRnH6RUzdahQCk5WXH6B022iv9uPRNUQ cEfz1jwkW72yNI/FGK+b7sMD/9EaHibSgVykgj1Nj6l4HPuOVVmfB4ZwWkbRD2V8SKL9 T0Yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=xcBw0Q2V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cs10si28447730ejc.569.2021.11.02.05.13.53; Tue, 02 Nov 2021 05:14:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=xcBw0Q2V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230282AbhKBMOe (ORCPT + 99 others); Tue, 2 Nov 2021 08:14:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229577AbhKBMOb (ORCPT ); Tue, 2 Nov 2021 08:14:31 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45062C061714; Tue, 2 Nov 2021 05:11:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: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=o6FGnU4FYOY3wyYVmDluYr+k4/2zK3R/YdK8+ZD+B24=; b=xcBw0Q2V9DCSvPYJKTfqqnt58Y Xxi0DhL4Go3hSmgmSTgUKCBZtG/cqy3CiK/5jx2H3aDtAlltAzP1H5p2UTKPiXQDJA+o538iXovEP /FxuEUidPzD7z9R3XJnumXLmvIerc1DIkMtH/sg/cHQyE8aEEDOW590g3N9MQl/Qkgc2a6X4Jl9RF QZtmo1k87gLy1FpzUvbuuQKGoLtMIrLa0HWfEoYI+W8hriexTPLAN12u4vF8Wln7tCirizlfSqK6a Xag91bRze7t2HHj9PJCLJ1/HRdurlHwC1AuGBu7F0Q7hZBEuqDo6yrJO531TXnOEJgRwnQJmHxkfE 3OeQn7uA==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:55436) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mhsds-0003mX-PL; Tue, 02 Nov 2021 12:11:52 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1mhsdp-0005Oz-CD; Tue, 02 Nov 2021 12:11:49 +0000 Date: Tue, 2 Nov 2021 12:11:49 +0000 From: "Russell King (Oracle)" To: Mark-PK Tsai Cc: ohad@wizery.com, bjorn.andersson@linaro.org, mathieu.poirier@linaro.org, matthias.bgg@gmail.com, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, yj.chiang@mediatek.com Subject: Re: [PATCH] remoteproc: use %d format string to print return error code Message-ID: References: <20211102120805.27137-1-mark-pk.tsai@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211102120805.27137-1-mark-pk.tsai@mediatek.com> Sender: Russell King (Oracle) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 02, 2021 at 08:08:05PM +0800, Mark-PK Tsai wrote: > Use %d format string to print return error code which > make the error message easier to understand. Even better, if you use %pe after converting "ret" to a pointer via ERR_PTR(ret), when the kernel is appropriately configured, the kernel will give a textual version of the error code, which is even easier! -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!