Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964786AbcJQTFo (ORCPT ); Mon, 17 Oct 2016 15:05:44 -0400 Received: from mail-cys01nam02on0082.outbound.protection.outlook.com ([104.47.37.82]:3510 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S938811AbcJQTFW (ORCPT ); Mon, 17 Oct 2016 15:05:22 -0400 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com;nxp.com; dkim=none (message not signed) header.d=none; From: Stuart Yoder To: CC: , , , , , , Stuart Yoder Subject: [PATCH 11/14] staging: fsl-mc: message cleanup Date: Mon, 17 Oct 2016 13:43:39 -0500 Message-ID: <1476729819-10219-1-git-send-email-stuart.yoder@nxp.com> X-Mailer: git-send-email 1.9.0 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131212037647556123;(91ab9b29-cfa4-454e-5278-08d120cd25b8);() X-Forefront-Antispam-Report: CIP:192.88.158.2;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(7916002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(77096005)(97736004)(2906002)(68736007)(104016004)(305945005)(85426001)(86362001)(47776003)(6666003)(6916009)(87936001)(11100500001)(4326007)(92566002)(15650500001)(229853001)(189998001)(81156014)(5660300001)(5003940100001)(50986999)(106466001)(36756003)(81166006)(626004)(50466002)(586003)(356003)(7846002)(105606002)(8666005)(48376002)(50226002)(110136003)(8936002)(8676002)(33646002)(69596002)(19580405001)(19580395003)(2351001)(7059030);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR03MB1421;H:az84smr01.freescale.net;FPR:;SPF:Fail;PTR:InfoDomainNonexistent;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1BFFO11FD038;1:H3NjyQZ6sPx4ZGR+LUkj2l3sQlfLgG/KquGUYWCStETmsvHjmRIuse2DXWFWdD4blHs98+TxSGzSGF+nRslblo+xHPZZy0tWuKRIAKlzyHcMfW4ZCh/RWfqtPUiYq5yutKLhgwz4a7+kgjDNYfmf028piR4TY/MLPbamLv1fhq5BN8GhTgsZ3GqoKQnos3epfVflODHUh1+qeyI3a0FoVzBF7k7eeAAlca07SYD2UPVS7s+paDQ5PZmW4NXAajMy4MGGeCROs3MEbBe1dftOi0H+Mu8Z06ywXf1+BnvnLzkGxBkl9+svmg//zW8wklV6gXpRXUWbmyhYo8n8UTCVoQg8I9yPpX229KD673nySr1hN3paaw2P0PgRCNnD5vPKQ+ApZfKBrWlr9gfsJM4McfeRsNE7YLSWCENZ9E26fHvysrgz5uA/8JMwip9StV+AEpNWnNlrS67baQZ5wdDBN7qu1uonucpWngMcU8hV6VOrtB4BTD1xvGdSUrOhD+SFN/PaueaiEk/i3qk9DGDFySA3iF+JMsmkw/rHguQsVl2GCPHYt4+GHvg9jd+hoa7PnQFDIOGXfJP5PeQTZGvjgP6yIAR0Eo1jJ86x9HkQ2SzckS8y/Q35D5cO8xr1l19nKgOMCWC+K9nx7vSyEVN8NRaVnJFRlf9ximmRsrxrEFbSnBYa3LJ/y62EwVE0xkr7FA4LFbTiVQS0SioHBYZIyHFRenj+FxkVxEESzu7onlM= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: c6cdc7db-9b0c-4e1f-7cba-08d3f6be50b1 X-Microsoft-Exchange-Diagnostics: 1;CY1PR03MB1421;2:wABNTgn4zM84HjEMXIbEqq8qqPNwgUyfA2Q2Ckp/v46C608YN3AGNX19eYSxkNXikIFyjttgM/12GHHj0B9uLqpDgh2RzL0Ces7AmSXmMYutONHPtFKPU0nLcAkhJb1mVIdTVDfoKwS0Xk9vi1bCgDAXxsk3sLThc/elBOdP2qVhECIzID8Nmxp15XXyKO4LS7gE817cXGv8O163q8BGKw==;3:4wrhWgXU/rjSqN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OVh8rNBinRPiWUWw==;4:bYwd9BQlrjGqY9G0y87jCizQnBhb5x11DUPnr6n2H+pFGk8WrJA/gLHsPzU7sQkRZS5aNs+kcDTIsHfHQUTQR9Rw71/jLU9LziMGoA5yNtRUx4T0VQp9DD6jiFZGEVk4f9PGAhvW677IbGM22BIiRjoyRqPRDOTu/mtIPYVK6O6GbJl528BFG9eOTTKqns3+d5Ow4LgEiiTOhZXoiQZSNWP+zNhcXdk8qqtFGRDuV0jcFHmVvB3qWmVjQ+mb0jtrQeI2qG+CbZzc9ITKORXTO+E9etSyz8uoeXKqydK6u4OG3x3IPe+vLrRml4OeXilGWVKPV7f/9LLbC/PFHgQZ4VIJsZe65rGcPYKKQAS3yXELJPbrHPPgmL6hSpHkVuf/HvWo2fxS8TWaEfr0JSkVoKKAKDve1e7oE/DlO6vxH0PI4utLADAD1Q3SE7HXPRv473bTAQ+hCEdQUKvF0BBnrZYUuVEXkxQZ1usGZaUrLuON4QdoLCBbi/kZQ2HDy+ET7MZ/ZpOf9pIsTlAqah5IELPlEC1vPJn5DZjAHFWt48I+9mA3/IZsTaUcoszlrHWH X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(13024025)(5005006)(13023025)(13017025)(13018025)(13015025)(8121501046)(3002001)(10201501046)(6055026);SRVR:CY1PR03MB1421;BCL:0;PCL:0;RULEID:(400006);SRVR:CY1PR03MB1421; X-Forefront-PRVS: 0098BA6C6C X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY1PR03MB1421;23:HBgkmb8134Ed2uIviMkUm0Byt4BZ+EeU6/Mj5z689?= =?us-ascii?Q?ARp6RxY8MBYTN0ofcGq8R51NYJZF3EDeLQlDL2dOihvLI/1/TeKDoGFgm8mG?= =?us-ascii?Q?8y+YgdB9ekhjK05N3K0lgimOybwDn6N95Pky/61xiyPjPy+fOEw4sb5zP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WFeLdjCbGUA5oAt/nT8z6tSbEfL7Bt6WascXM?= =?us-ascii?Q?2SZOWnIrZl0JqZmpAAx94h0TUpY0WQgiNW16QAJRpXu2tAGSwaW5R+ZZcx/O?= =?us-ascii?Q?wQDpFZPqRAADsjqmiOnXueJOmTYn+dKj7sKv2PGupp503r+j8RjcP2ho+NTQ?= =?us-ascii?Q?bXI4wCbUct0rC5Cia7TzvJvfK1O7bGaq1yC?= X-Microsoft-Exchange-Diagnostics: 1;CY1PR03MB1421;6:7PoQlXJsV6oUd2rhNfzU6kFRoeWlFn6AgqiMge59CjnyFwXFqHxy7jx88O2/xttMNM0RdfreQfDJGv+I1v/th72ebWFYON/rTNNFiDtts0C7xSydG4O1coxDHPhe/WUahc8qxUnfYjuNmrhsEkMjl6n4jgqkeoCOlQYZ4ikIL54onBZTlBspHnGT+9v6n4QX0oJAI0joD9JUFL5FlNozje87+EEMQgudhvkX683hXMsuDWmDvoMOiGaX71efFc0Dh/Z8xnIEAhky/3AJq2oyeLS+mrn+t3B5Q6KmWE+SipGX5MD9H41nMFqEP4ToYV5p;5:D1RV95CSLsJGfVbqjtFo6G3mRPWV27GdQYbQSe+chunmp8PyLLdNkk678DvJbEX+ylxd7sEFpupCVcQN1Ra1tzdFy5dzO5kmswq2VgKcBk42hnlXWO5SyADkOGXOZ/lnYU7nJmpiz1JNfpoxpos8fjWW4j4hpwMEzO04kt3jh3Zn0v9Ce7nGkp0sj8nDOQWP;24:gJPGE9petDq8v5MZKoDx3987iQDNuk6Q6ZFYds2sKVF2wJq1lamNjXykPu/FYfj28vD3pOnZeTANplr4USrOH68wCMAoxZzKOgatHqEJB3o= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CY1PR03MB1421;7:PyUbzohz31pJY5OFIaddhpIUKNhqC4SgKHN9LS/Wbl5Ql+OajBzaAsbUkM4qfc+fxwQ3fKkbNODnq+WhmN9Tu7Dp1YQxIKe7zbnsY3dCE0P6J+00/721XB1JSVlHNyY/Wvfe4CHPmmTqR6ZMRXitcaR/84cJuVqIZ+qvfQAB6/VEMaIlaVOdqzy14vBoFpYkqAzkChnNT2fa05mYR6hl1Vk0NHDhc1Pv9tiscIh4s7FwD5e975OydM9p27TMXDJHZCr9rf/+zazx8/IvA3jTA6k+GUKN8J61V2WUeS011KwWLC2tVssOVITjbkd6zrYh2ZLhkcHsFQvXrSvFs5oxjTp2qFWeTaP2COQJ1VjH898= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Oct 2016 18:49:24.5060 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[192.88.158.2];Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR03MB1421 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4710 Lines: 142 Cleanup and clarify messages -use "fsl-mc" prefix for all messages that don't come from dev_* functions -remove unnecessary verbosity to make things clearer -use explicit __func__ arguments to clarify some error messages -improve misc wording for clarity Signed-off-by: Stuart Yoder --- drivers/staging/fsl-mc/bus/fsl-mc-allocator.c | 4 ++-- drivers/staging/fsl-mc/bus/fsl-mc-bus.c | 30 +++++++++++---------------- 2 files changed, 14 insertions(+), 20 deletions(-) diff --git a/drivers/staging/fsl-mc/bus/fsl-mc-allocator.c b/drivers/staging/fsl-mc/bus/fsl-mc-allocator.c index cf10148..e92c780 100644 --- a/drivers/staging/fsl-mc/bus/fsl-mc-allocator.c +++ b/drivers/staging/fsl-mc/bus/fsl-mc-allocator.c @@ -605,7 +605,7 @@ static int fsl_mc_allocator_probe(struct fsl_mc_device *mc_dev) return error; dev_dbg(&mc_dev->dev, - "Allocatable MC object device bound to fsl_mc_allocator driver"); + "Allocatable fsl-mc device bound to fsl_mc_allocator driver"); return 0; } @@ -627,7 +627,7 @@ static int fsl_mc_allocator_remove(struct fsl_mc_device *mc_dev) } dev_dbg(&mc_dev->dev, - "Allocatable MC object device unbound from fsl_mc_allocator driver"); + "Allocatable fsl-mc device unbound from fsl_mc_allocator driver"); return 0; } diff --git a/drivers/staging/fsl-mc/bus/fsl-mc-bus.c b/drivers/staging/fsl-mc/bus/fsl-mc-bus.c index 44f64b6..936e3ee 100644 --- a/drivers/staging/fsl-mc/bus/fsl-mc-bus.c +++ b/drivers/staging/fsl-mc/bus/fsl-mc-bus.c @@ -164,8 +164,7 @@ static int fsl_mc_driver_probe(struct device *dev) error = mc_drv->probe(mc_dev); if (error < 0) { - dev_err(dev, "MC object device probe callback failed: %d\n", - error); + dev_err(dev, "%s failed: %d\n", __func__, error); return error; } @@ -183,9 +182,7 @@ static int fsl_mc_driver_remove(struct device *dev) error = mc_drv->remove(mc_dev); if (error < 0) { - dev_err(dev, - "MC object device remove callback failed: %d\n", - error); + dev_err(dev, "%s failed: %d\n", __func__, error); return error; } @@ -227,13 +224,12 @@ int __fsl_mc_driver_register(struct fsl_mc_driver *mc_driver, error = driver_register(&mc_driver->driver); if (error < 0) { - pr_err("driver_register() failed for %s: %d\n", + pr_err("fsl-mc: driver_register() failed for %s: %d\n", mc_driver->driver.name, error); return error; } - pr_info("MC object device driver %s registered\n", - mc_driver->driver.name); + pr_info("fsl-mc: driver %s registered\n", mc_driver->driver.name); return 0; } EXPORT_SYMBOL_GPL(__fsl_mc_driver_register); @@ -572,8 +568,7 @@ int fsl_mc_device_add(struct dprc_obj_desc *obj_desc, } (void)get_device(&mc_dev->dev); - dev_dbg(parent_dev, "Added MC object device %s\n", - dev_name(&mc_dev->dev)); + dev_dbg(parent_dev, "added %s\n", dev_name(&mc_dev->dev)); *new_mc_dev = mc_dev; return 0; @@ -749,7 +744,7 @@ static int fsl_mc_bus_probe(struct platform_device *pdev) struct mc_version mc_version; struct resource res; - dev_info(&pdev->dev, "Root MC bus device probed"); + dev_info(&pdev->dev, "root DPRC probed"); mc = devm_kzalloc(&pdev->dev, sizeof(*mc), GFP_KERNEL); if (!mc) @@ -783,8 +778,7 @@ static int fsl_mc_bus_probe(struct platform_device *pdev) goto error_cleanup_mc_io; } - dev_info(&pdev->dev, - "Freescale Management Complex Firmware version: %u.%u.%u\n", + dev_info(&pdev->dev, "MC firmware version: %u.%u.%u\n", mc_version.major, mc_version.minor, mc_version.revision); error = get_mc_addr_translation_ranges(&pdev->dev, @@ -840,7 +834,7 @@ static int fsl_mc_bus_remove(struct platform_device *pdev) fsl_destroy_mc_io(mc->root_mc_bus_dev->mc_io); mc->root_mc_bus_dev->mc_io = NULL; - dev_info(&pdev->dev, "Root MC bus device removed"); + dev_info(&pdev->dev, "root DPRC removed"); return 0; } @@ -869,21 +863,21 @@ static int __init fsl_mc_bus_driver_init(void) sizeof(struct fsl_mc_device), 0, 0, NULL); if (!mc_dev_cache) { - pr_err("Could not create fsl_mc_device cache\n"); + pr_err("fsl-mc: could not create fsl_mc_device cache\n"); return -ENOMEM; } error = bus_register(&fsl_mc_bus_type); if (error < 0) { - pr_err("fsl-mc bus type registration failed: %d\n", error); + pr_err("fsl-mc: bus registration failed: %d\n", error); goto error_cleanup_cache; } - pr_info("fsl-mc bus type registered\n"); + pr_info("fsl-mc: bus registered\n"); error = platform_driver_register(&fsl_mc_bus_driver); if (error < 0) { - pr_err("platform_driver_register() failed: %d\n", error); + pr_err("fsl-mc: driver registration failed: %d\n", error); goto error_cleanup_bus; } -- 1.9.0