Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752325AbcJALtC (ORCPT ); Sat, 1 Oct 2016 07:49:02 -0400 Received: from mail-db5eur01on0099.outbound.protection.outlook.com ([104.47.2.99]:7254 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752134AbcJALsL (ORCPT ); Sat, 1 Oct 2016 07:48:11 -0400 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=bhuvanchandra.dv@toradex.com; From: Bhuvanchandra DV To: , CC: , , , , , , , , , , Lothar Wassmann , Bhuvanchandra DV Subject: [PATCH v2 1/6] pwm: print error messages with pr_err() instead of pr_debug() Date: Sat, 1 Oct 2016 15:42:30 +0530 Message-ID: <20161001101235.24598-2-bhuvanchandra.dv@toradex.com> X-Mailer: git-send-email 2.9.2 In-Reply-To: <20161001101235.24598-1-bhuvanchandra.dv@toradex.com> References: <20161001101235.24598-1-bhuvanchandra.dv@toradex.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [115.115.243.34] X-ClientProxiedBy: PN1PR01CA0050.INDPRD01.PROD.OUTLOOK.COM (2a01:111:e400:5a3d::22) To AM3PR05MB1396.eurprd05.prod.outlook.com (2a01:111:e400:5871::11) X-MS-Office365-Filtering-Correlation-Id: 417dee22-fbeb-4274-7745-08d3e9e3c976 X-Microsoft-Exchange-Diagnostics: 1;AM3PR05MB1396;2:AvSHRmWzvRYQYzLyslr3IaC+IrTS7esBdhw5zzKhAvBJ8F7A82gFNU2qwZGm5VYGlO96yZtgubs6nSCLQml3kgA9qFa+sIABUbZHhhkugOkDIPpxaYn1EwA5XCXuDpc5wzqZO9VsgDsbu+EW+7vf/RnLdJpm8ZvGG6pdk/K8bGQMtJwz1RFrPfLaEzzw2o87;3:0XNMkW8dJdkwJPjrFkcr9yhrTsgdvQYf3ikXxg2STEit2REr/P8ge9Rq1uA3h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b7mr6Hb/oifzSulHriHHOQ5ljQY6WrmzbKEUIo3G9ToD1Yjme9dfxYogQ2simgdm+ygdpiipazTQh5f/ba/5WG3GYDxyRJ4oZoMotWWpNkA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001);SRVR:AM3PR05MB1396;BCL:0;PCL:0;RULEID:;SRVR:AM3PR05MB1396; X-Microsoft-Exchange-Diagnostics: 1;AM3PR05MB1396;4:x7SzI5KP2/RlGr3RBsA9eoUXyklJJ/0FPtEZ7kKNl4XiF0a0AVORIdOo5kJZBjyrC2ZYOlWstmg/MqFUpnvG/dMlzSdK+cmhOAhvyGNQRhj2C2EIS2HTT3IDpV88QTF7wgr1qYBqZMwFgdA7x48zmrEw/u98ItlbVgdlW+d89naYnaB5MaZtCXNlKsPrdzuG0ipEQOhyn1bX5g0JV0ZjjvgPJ0JhG6Q/64jl9wy1O9ej/3zev7IyOoPoDFuIG/3ORsqYOFoSKycVUQdgYzpnVlxc6wjiOPGuoaGqZmic5C/nPhkiGv4KSlAYJheljRaERg9KYdEgjzbhM6uCWCHSTlEHE4Qa9CjYDAEGmRGr4oM7GMBcUSnIMsU6ccon+JWC X-Forefront-PRVS: 00826B6158 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(7916002)(199003)(189002)(7416002)(5820100001)(92566002)(36756003)(47776003)(189998001)(6666003)(305945005)(2870700001)(68736007)(229853001)(5001770100001)(97736004)(66066001)(4326007)(33646002)(105586002)(5660300001)(50226002)(106356001)(8666005)(2906002)(586003)(2950100002)(107886002)(15650500001)(50466002)(1076002)(76176999)(81156014)(50986999)(81166006)(7736002)(6116002)(3846002)(23676002)(42186005)(7846002)(8676002)(53416004)(101416001)(69596002)(86362001)(19580395003)(4001430100002)(19580405001)(7059030);DIR:OUT;SFP:1102;SCL:1;S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BpUGJmdWVFMkdoRlAzMzVrYlFOZUlrRmJDd0VVc3dh?= =?utf-8?B?Z29naTZxTGdHVndoci9MQT09?= X-Microsoft-Exchange-Diagnostics: 1;AM3PR05MB1396;6:GqA/EpqE89wMrn5VCxmJ8ecpyo3vGB2bxl/m1fS6cnvezDCklVLnCWwiIjRbdIIGaOJGELheixrV/er51o4u2NyMQFjV7EjY9UI92K9hrRpF9hkLZgQY6EL5brcv6wUrDKznLKdS8fPlB6FGgTZCgturS5fJyGEXQmylzzXXBkwzIyyT6aiia4N8owcAonotgko4L7dzwXhMM5c+ONNnTeBM/MdqioOMsjFwpxLJwNWz6p28BvnLwa3BGfH6u+0KwdPR1bnIRkn9gSBRD/QxaWmqVvxopont01ZAI9qlF4M=;5:ocpQcLA/rVtQxoZ+OcZZWEg00CiaDo01+DawnNsCcazZJhZAqwHYdemG0zknHqcFGhRmdNtgS2aa2XOQo1RK0j77JiENaSQ96/b8r2TRcUvQlpbyykxe+c01xhyCCb8FoBeZiGLJF9E1POgTd//JsA==;24:m+YA7nB8hFxasZTo1pGOQ258zButJB18daGuIug6TAr6XzZg5W59uMtf7R75eTQTaOBKXywb3CkjCqH8FDuijOMzlyxkVfNMs708AMFPGQ8=;7:C0ZNwtiz0s8V93ikAGh5J5Mxed0A9AaOtzeH7YhMSlOXoVxtbgHvlr0QWjQxFsY9gvtluNcaCAJ4EFBojqmuR4bCPaqJ9Slj9lwoY24Z/M8TOaYZx6BGsL3NpOq21XkMMy/JbV/A+jz/ukQvstOgqFtbPMm01ZAqYskymoL9Hg91Z3uuF8XdOHKjafF6fiE4lyETk/oqlscHqhN6Xb4TlQHZJqFa1Pf1WnytW7rUSh7unxxDbBYdKzii8GuK0yaBxLeam1NwTHLOEcEOzo0/TqjuBth3x1NEsn3H1YKUf7Sm3407e9lZBEGcz/6xf7Ws SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Oct 2016 10:14:51.2272 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM3PR05MB1396 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1093 Lines: 33 From: Lothar Wassmann Make the messages that are printed in case of fatal errors actually visible to the user without having to recompile the driver with debugging enabled. Signed-off-by: Lothar Waßmann Signed-off-by: Bhuvanchandra DV --- drivers/pwm/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c index 0dbd29e..195373e 100644 --- a/drivers/pwm/core.c +++ b/drivers/pwm/core.c @@ -661,13 +661,13 @@ struct pwm_device *of_pwm_get(struct device_node *np, const char *con_id) err = of_parse_phandle_with_args(np, "pwms", "#pwm-cells", index, &args); if (err) { - pr_debug("%s(): can't parse \"pwms\" property\n", __func__); + pr_err("%s(): can't parse \"pwms\" property\n", __func__); return ERR_PTR(err); } pc = of_node_to_pwmchip(args.np); if (IS_ERR(pc)) { - pr_debug("%s(): PWM chip not found\n", __func__); + pr_err("%s(): PWM chip not found\n", __func__); pwm = ERR_CAST(pc); goto put; } -- 2.9.2