From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0E6B845B01; Tue, 15 Oct 2024 14:06:01 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D0C76400D7; Tue, 15 Oct 2024 14:06:00 +0200 (CEST) Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2073.outbound.protection.outlook.com [40.107.104.73]) by mails.dpdk.org (Postfix) with ESMTP id 152DA400D6 for ; Tue, 15 Oct 2024 14:05:59 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=u3tpEQXAzdyoWnTCeZ/XR7u/hKAmdGDYnxPErn5M6cf20lbyOA2ZgtIx9efblOiAm4tadOukmKns8wHUbuHAN18RRvANc4g4aqRlU6Nzd2dF4R6ehR/RzcwiZ0+oJKL6i4dAk2Czw9RMmniHYOmjJEDLitex1RE5+Vl+jCbisFSM25hxWpZeTtWBZtgnrQBPWy23aVaNszZf7+Cj8KMNQqHySIO05nx2Mno4mQ144FAx2woB8OYqaIzAu3fiNkjlCMq56L/X4Mf/yFk1y4q7Cfps126AXCDljLW8fNXtfsrwfTLGkSLQWmw68/7oc+zUKzC++yQgOR8bWKfRC45lTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=AjCDozaSvKdPwSfXZPE2mpBmNoPA8SUfihReAimU5bE=; b=HtGw0eyS7PAGxg/rOKS1FDpgZKCftGoxHhgKeZuro+5XhzeXuV90l9qQyM4X4XHUTa4j/V3BrkgyWhkucNjTkCvseKvyIajsD69RBX7LB/ANpL3V7IxloHU+T/0DzAlU/Ja4Dv8aDlTnWTppItV5IL0U2uRU5qMLTTONrT52FUxOy9x7CEJV1F6/La/prr7Kw1/v27PCXlpK43cwSht8PCWZoAnTJYX8uVXmMgbsB8qvZClfoZQ4PmEjF9gnbsICybKUBeTtjR+koWkMHlvBbDWR0K8FfK6a2JpH8lqI9siTkuVJ8rUPMTlsb3NYA60+jl9phsX/yCE5z8EWxTJTPA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AjCDozaSvKdPwSfXZPE2mpBmNoPA8SUfihReAimU5bE=; b=B8WuzqZKoWCqWzrSDime4sAdnHZS5s3znPuaatccIvxA+yrUkFZPP3qe+78nkWgxpVcmO1Jl23gmHSKcpZuYPupzlxhAJkJ692hhTlZv6Au/uc6FeonPk5jbL/rFc2kfkWt0P04OoLzs31LGz7NXpo6pFwZbk4RY3yfegN/znJDwKFKehO2XhdEcfSN1XF33nb7DCe0eeDbDxeInCfU46KB/lKjvUYUBz/3u/uYa2K+fnwSq3xjx+c4T2ZLLP7SkeHZDI5k/yFaPz0A6BRTydCciOTT8eH+H1rPlha+2V9rsYw3Ye9ul4+YbjV++xcMOr5JnMzF6brK4GXMJaVh9zg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9328.eurprd04.prod.outlook.com (2603:10a6:102:2b6::15) by AS8PR04MB8993.eurprd04.prod.outlook.com (2603:10a6:20b:42c::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8026.15; Tue, 15 Oct 2024 12:05:57 +0000 Received: from PAXPR04MB9328.eurprd04.prod.outlook.com ([fe80::367:d59:375:fb87]) by PAXPR04MB9328.eurprd04.prod.outlook.com ([fe80::367:d59:375:fb87%3]) with mapi id 15.20.8048.020; Tue, 15 Oct 2024 12:05:57 +0000 From: Hemant Agrawal To: david.marchand@redhat.com, dev@dpdk.org Cc: ferruh.yigit@amd.com, Hemant Agrawal Subject: [PATCH] net/dpaa/fmlib: remove new line char from the logs Date: Tue, 15 Oct 2024 17:35:38 +0530 Message-Id: <20241015120538.1763051-1-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.25.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2P153CA0020.APCP153.PROD.OUTLOOK.COM (2603:1096:4:190::19) To PAXPR04MB9328.eurprd04.prod.outlook.com (2603:10a6:102:2b6::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9328:EE_|AS8PR04MB8993:EE_ X-MS-Office365-Filtering-Correlation-Id: 3e3b81c8-9e66-41ca-0990-08dced11ba09 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|366016|376014|1800799024|52116014|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?ahGlhjgJBhHOZ23xquVq9TWDwbZhGlIjAPHueydjXwXMQW5EC+Z0/RLoDTHm?= =?us-ascii?Q?NLOtB2/7JBrchapvjVSHX5U9t3zyPw+Wq8FpN9nAr4Wm+vltoCRcKwBT/Qd8?= =?us-ascii?Q?snvB6E40E6009ozteGVkqLhoUjMhY6J28qSaXAoFxFCG0r7Lhk/uGLCQPanp?= =?us-ascii?Q?ULr7g161qKb8QjlX066sdh5wtZ8IKYsvdn61+HKIi56cmUDW8R7KshEYh0+z?= =?us-ascii?Q?ktNQtvotLTO+JBF+IyQCUabM/kOehUMSTl7AAXELYpK1qWQoV6Sjz5dv1cZr?= =?us-ascii?Q?rYeLWa+lqCHaAeNPR71gxamwdqyp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q?q3J5MajQMqKqfBuYI7bOjQiWEMceo4wViUQJ67NScLVkI04sFoh74UBR9lNR?= =?us-ascii?Q?4FAfibIrmyYQHmCqDFzyzaJpSsVK1YvzOnlrjXzDtil6MgiLuUS6nMn079pn?= =?us-ascii?Q?sKvv3aYk8u0M7fJ52iWl8ux7oVODvJ9GvsIZ6VemnawxvA=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PAXPR04MB9328.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(376014)(1800799024)(52116014)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?iO+es1khD90L+dIPtXFdJqu0lt7ZcDa/Gljn9npvu+fzIdIl5LaJGctrAD53?= =?us-ascii?Q?t+IJGMcjsGkBkvmUZvFiKgTKGGWkYtOun+JfkQlSC/DsH/phWoqt3bvLEVxN?= =?us-ascii?Q?iMzCtkFCMGgpf1REavdsH3g9GAAspuHd+/Ez6OlUTPwybojGY2k8fXTCbRek?= =?us-ascii?Q?F0qFATfSA/r32v+gb/HW6uryJ1E979Z7sL576AJmaEUjgU2koSOqd26+fEgn?= =?us-ascii?Q?J1QZoCOWN5rRkGeXVG+To8BYBHHMFJPQuHJnj6zlIEer5kycFH/1mYdhbyq1?= =?us-ascii?Q?zwPZ1fKwynk7eInIT9aM6/SQ0lbCBUkuF15taSauazPESnbh2b+CwWqLt7Y5?= =?us-ascii?Q?sYTQ/ovTY9mCtJNoxeRzMOS8lp9l9dOM59Asi0vzdxRutrZVUbhLMvLoo0RG?= =?us-ascii?Q?f2YZRfBSi6Hg+0psACJ/PdYLINzpvJ6MS0Tx4jVCFtVVpUy7ZK/F+epobtj5?= =?us-ascii?Q?qdvKrw6CMnGARfYc0IGleu6j72jz+ZU253mpQuJ0iEbjfFxaaas6EaBR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V8ehdYngQNZK64BA0UC92slBk/S?= =?us-ascii?Q?yZ8TybDx+WGNITMhHkU380gOjNE5EgWr53u0TEDyu6K++WAVG41xrKq7s+oU?= =?us-ascii?Q?QHcjgG0SqzP4y9LJiHSoGfg2XJtt1PqqOQWOxq3aoZ8c/9dg3Rmjk5XBCQxD?= =?us-ascii?Q?0edcIKcmUgiU92xFKg9dCad5dHXBdAppEBHGUvkJwWpsFPGEbBFl3w81fSTf?= =?us-ascii?Q?CA=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3e3b81c8-9e66-41ca-0990-08dced11ba09 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9328.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2024 12:05:57.3957 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 2xp29g7+cswTwO7ceR+5bX+t8FjvKEwCBJUvWEhqJpyc1khvM8aPMkusEM6BbdzTefvNvur0Lj1GN+zSwCTgwA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8993 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org This patch remove the new line char from several logs in the fmlib base driver. Signed-off-by: Hemant Agrawal --- drivers/net/dpaa/fmlib/fm_ext.h | 21 +++++++-- drivers/net/dpaa/fmlib/fm_lib.c | 76 ++++++++++++++++----------------- drivers/net/dpaa/fmlib/fm_vsp.c | 20 ++++----- 3 files changed, 66 insertions(+), 51 deletions(-) diff --git a/drivers/net/dpaa/fmlib/fm_ext.h b/drivers/net/dpaa/fmlib/fm_ext.h index 4666fa3b0b..9a3193674e 100644 --- a/drivers/net/dpaa/fmlib/fm_ext.h +++ b/drivers/net/dpaa/fmlib/fm_ext.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: BSD-3-Clause * Copyright 2008-2012 Freescale Semiconductor Inc. - * Copyright 2017-2020 NXP + * Copyright 2017-2024 NXP */ #ifndef __FM_EXT_H @@ -15,8 +15,23 @@ #define MODULE_FM 0x00010000 #define __ERR_MODULE__ MODULE_FM -#define _fml_dbg(...) -#define _fm_ioctl_dbg(...) +/* #define FM_LIB_DBG */ + +#if defined(FM_LIB_DBG) +#define _fml_dbg(...) \ + RTE_LOG_LINE_PREFIX(DEBUG, DPAA_PMD, "%s: ", __func__, __VA_ARGS__) +#else + #define _fml_dbg(arg...) +#endif + +/*#define FM_IOCTL_DBG*/ + +#if defined(FM_IOCTL_DBG) + #define _fm_ioctl_dbg(...) \ + RTE_LOG_LINE_PREFIX(DEBUG, DPAA_PMD, "%s: ", __func__, __VA_ARGS__) +#else + #define _fm_ioctl_dbg(arg...) +#endif /* * @Group lnx_ioctl_ncsw_grp NetCommSw Linux User-Space (IOCTL) API diff --git a/drivers/net/dpaa/fmlib/fm_lib.c b/drivers/net/dpaa/fmlib/fm_lib.c index 68b519ff8a..b35feba004 100644 --- a/drivers/net/dpaa/fmlib/fm_lib.c +++ b/drivers/net/dpaa/fmlib/fm_lib.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: BSD-3-Clause * Copyright 2008-2016 Freescale Semiconductor Inc. - * Copyright 2017-2020 NXP + * Copyright 2017-2024 NXP */ #include @@ -44,7 +44,7 @@ fm_open(uint8_t id) static bool called; ioc_fm_api_version_t ver; - _fml_dbg("Calling...\n"); + _fml_dbg("Calling..."); p_dev = (t_device *)malloc(sizeof(t_device)); if (p_dev == NULL) @@ -75,7 +75,7 @@ fm_open(uint8_t id) ver.version.respin); } } - _fml_dbg("Finishing.\n"); + _fml_dbg("Finishing."); return (t_handle)p_dev; } @@ -84,12 +84,12 @@ void fm_close(t_handle h_fm) { t_device *p_dev = (t_device *)h_fm; - _fml_dbg("Calling...\n"); + _fml_dbg("Calling..."); close(p_dev->fd); free(p_dev); - _fml_dbg("Finishing.\n"); + _fml_dbg("Finishing."); } uint32_t @@ -98,7 +98,7 @@ fm_get_api_version(t_handle h_fm, ioc_fm_api_version_t *p_version) t_device *p_dev = (t_device *)h_fm; int ret; - _fml_dbg("Calling...\n"); + _fml_dbg("Calling..."); ret = ioctl(p_dev->fd, FM_IOC_GET_API_VERSION, p_version); if (ret) { @@ -106,7 +106,7 @@ fm_get_api_version(t_handle h_fm, ioc_fm_api_version_t *p_version) errno, strerror(errno)); RETURN_ERROR(MINOR, E_INVALID_OPERATION, NO_MSG); } - _fml_dbg("Finishing.\n"); + _fml_dbg("Finishing."); return E_OK; } @@ -118,7 +118,7 @@ fm_pcd_open(t_fm_pcd_params *p_fm_pcd_params) int fd; char dev_name[20]; - _fml_dbg("Calling...\n"); + _fml_dbg("Calling..."); p_dev = (t_device *)malloc(sizeof(t_device)); if (p_dev == NULL) @@ -137,7 +137,7 @@ fm_pcd_open(t_fm_pcd_params *p_fm_pcd_params) p_dev->fd = fd; p_dev->owners = 0; - _fml_dbg("Finishing.\n"); + _fml_dbg("Finishing."); return (t_handle)p_dev; } @@ -147,19 +147,19 @@ fm_pcd_close(t_handle h_fm_pcd) { t_device *p_dev = (t_device *)h_fm_pcd; - _fml_dbg("Calling...\n"); + _fml_dbg("Calling..."); close(p_dev->fd); if (p_dev->owners) { - printf("\nTry delete a prev created pcd handler(owners:%u)!\n", + printf("\nTry delete a prev created pcd handler(owners:%u)!", p_dev->owners); return; } free(p_dev); - _fml_dbg("Finishing.\n"); + _fml_dbg("Finishing."); } uint32_t @@ -167,12 +167,12 @@ fm_pcd_enable(t_handle h_fm_pcd) { t_device *p_dev = (t_device *)h_fm_pcd; - _fml_dbg("Calling...\n"); + _fml_dbg("Calling..."); if (ioctl(p_dev->fd, FM_PCD_IOC_ENABLE)) RETURN_ERROR(MINOR, E_INVALID_OPERATION, NO_MSG); - _fml_dbg("Finishing.\n"); + _fml_dbg("Finishing."); return E_OK; } @@ -182,12 +182,12 @@ fm_pcd_disable(t_handle h_fm_pcd) { t_device *p_dev = (t_device *)h_fm_pcd; - _fml_dbg("Calling...\n"); + _fml_dbg("Calling..."); if (ioctl(p_dev->fd, FM_PCD_IOC_DISABLE)) RETURN_ERROR(MINOR, E_INVALID_OPERATION, NO_MSG); - _fml_dbg("Finishing.\n"); + _fml_dbg("Finishing."); return E_OK; } @@ -199,7 +199,7 @@ fm_pcd_net_env_characteristics_set(t_handle h_fm_pcd, t_device *p_pcd_dev = (t_device *)h_fm_pcd; t_device *p_dev = NULL; - _fml_dbg("Calling...\n"); + _fml_dbg("Calling..."); params->id = NULL; @@ -216,7 +216,7 @@ fm_pcd_net_env_characteristics_set(t_handle h_fm_pcd, p_pcd_dev->owners++; p_dev->id = PTR_TO_UINT(params->id); - _fml_dbg("Finishing.\n"); + _fml_dbg("Finishing."); return (t_handle)p_dev; } @@ -228,7 +228,7 @@ fm_pcd_net_env_characteristics_delete(t_handle h_net_env) t_device *p_pcd_dev = NULL; ioc_fm_obj_t id; - _fml_dbg("Calling...\n"); + _fml_dbg("Calling..."); p_pcd_dev = (t_device *)p_dev->h_user_priv; id.obj = UINT_TO_PTR(p_dev->id); @@ -240,7 +240,7 @@ fm_pcd_net_env_characteristics_delete(t_handle h_net_env) p_pcd_dev->owners--; free(p_dev); - _fml_dbg("Finishing.\n"); + _fml_dbg("Finishing."); return E_OK; } @@ -253,7 +253,7 @@ fm_pcd_kg_scheme_set(t_handle h_fm_pcd, t_device *p_dev = NULL; int ret; - _fml_dbg("Calling...\n"); + _fml_dbg("Calling..."); params->id = NULL; @@ -291,7 +291,7 @@ fm_pcd_kg_scheme_set(t_handle h_fm_pcd, p_pcd_dev->owners++; p_dev->id = PTR_TO_UINT(params->id); - _fml_dbg("Finishing.\n"); + _fml_dbg("Finishing."); return (t_handle)p_dev; } @@ -303,7 +303,7 @@ fm_pcd_kg_scheme_delete(t_handle h_scheme) t_device *p_pcd_dev = NULL; ioc_fm_obj_t id; - _fml_dbg("Calling...\n"); + _fml_dbg("Calling..."); p_pcd_dev = (t_device *)p_dev->h_user_priv; id.obj = UINT_TO_PTR(p_dev->id); @@ -317,7 +317,7 @@ fm_pcd_kg_scheme_delete(t_handle h_scheme) p_pcd_dev->owners--; free(p_dev); - _fml_dbg("Finishing.\n"); + _fml_dbg("Finishing."); return E_OK; } @@ -335,7 +335,7 @@ fm_port_open(t_fm_port_params *p_fm_port_params) char dev_name[30]; t_fm_port *p_fm_port; - _fml_dbg("Calling...\n"); + _fml_dbg("Calling..."); p_dev = (t_device *)malloc(sizeof(t_device)); if (p_dev == NULL) @@ -395,7 +395,7 @@ fm_port_open(t_fm_port_params *p_fm_port_params) p_dev->fd = fd; p_dev->h_user_priv = (t_handle)p_fm_port; - _fml_dbg("Finishing.\n"); + _fml_dbg("Finishing."); return (t_handle)p_dev; } @@ -405,13 +405,13 @@ fm_port_close(t_handle h_fm_port) { t_device *p_dev = (t_device *)h_fm_port; - _fml_dbg("Calling...\n"); + _fml_dbg("Calling..."); close(p_dev->fd); free(p_dev->h_user_priv); free(p_dev); - _fml_dbg("Finishing.\n"); + _fml_dbg("Finishing."); } uint32_t @@ -419,12 +419,12 @@ fm_port_disable(t_handle h_fm_port) { t_device *p_dev = (t_device *)h_fm_port; - _fml_dbg("Calling...\n"); + _fml_dbg("Calling..."); if (ioctl(p_dev->fd, FM_PORT_IOC_DISABLE)) RETURN_ERROR(MINOR, E_INVALID_OPERATION, NO_MSG); - _fml_dbg("Finishing.\n"); + _fml_dbg("Finishing."); return E_OK; } @@ -434,12 +434,12 @@ fm_port_enable(t_handle h_fm_port) { t_device *p_dev = (t_device *)h_fm_port; - _fml_dbg("Calling...\n"); + _fml_dbg("Calling..."); if (ioctl(p_dev->fd, FM_PORT_IOC_ENABLE)) RETURN_ERROR(MINOR, E_INVALID_OPERATION, NO_MSG); - _fml_dbg("Finishing.\n"); + _fml_dbg("Finishing."); return E_OK; } @@ -450,7 +450,7 @@ fm_port_set_pcd(t_handle h_fm_port, { t_device *p_dev = (t_device *)h_fm_port; - _fml_dbg("Calling...\n"); + _fml_dbg("Calling..."); /* correct h_net_env param from t_fm_portPcdParams */ DEV_TO_ID(p->net_env_id); @@ -509,7 +509,7 @@ fm_port_set_pcd(t_handle h_fm_port, if (ioctl(p_dev->fd, FM_PORT_IOC_SET_PCD, p)) RETURN_ERROR(MINOR, E_INVALID_OPERATION, NO_MSG); - _fml_dbg("Finishing.\n"); + _fml_dbg("Finishing."); return E_OK; } @@ -519,12 +519,12 @@ fm_port_delete_pcd(t_handle h_fm_port) { t_device *p_dev = (t_device *)h_fm_port; - _fml_dbg("Calling...\n"); + _fml_dbg("Calling..."); if (ioctl(p_dev->fd, FM_PORT_IOC_DELETE_PCD)) RETURN_ERROR(MINOR, E_INVALID_OPERATION, NO_MSG); - _fml_dbg("Finishing.\n"); + _fml_dbg("Finishing."); return E_OK; } @@ -535,7 +535,7 @@ create_device(t_handle h_user_priv, t_handle h_dev_id) t_device *p_user_priv_dev = (t_device *)h_user_priv; t_device *p_dev = NULL; - _fml_dbg("Calling...\n"); + _fml_dbg("Calling..."); p_dev = (t_device *)malloc(sizeof(t_device)); if (p_dev == NULL) @@ -546,7 +546,7 @@ create_device(t_handle h_user_priv, t_handle h_dev_id) p_user_priv_dev->owners++; p_dev->id = PTR_TO_UINT(h_dev_id); - _fml_dbg("Finishing.\n"); + _fml_dbg("Finishing."); return (t_handle)p_dev; } diff --git a/drivers/net/dpaa/fmlib/fm_vsp.c b/drivers/net/dpaa/fmlib/fm_vsp.c index a5901c8f6e..3db652bb64 100644 --- a/drivers/net/dpaa/fmlib/fm_vsp.c +++ b/drivers/net/dpaa/fmlib/fm_vsp.c @@ -26,14 +26,14 @@ fm_port_vsp_alloc(t_handle h_fm_port, t_device *p_dev = (t_device *)h_fm_port; ioc_fm_port_vsp_alloc_params_t params; - _fml_dbg("Calling...\n"); + _fml_dbg("Calling..."); memset(¶ms, 0, sizeof(ioc_fm_port_vsp_alloc_params_t)); memcpy(¶ms.params, p_params, sizeof(t_fm_port_vspalloc_params)); if (ioctl(p_dev->fd, FM_PORT_IOC_VSP_ALLOC, ¶ms)) RETURN_ERROR(MINOR, E_INVALID_OPERATION, NO_MSG); - _fml_dbg("Called.\n"); + _fml_dbg("Called."); return E_OK; } @@ -47,7 +47,7 @@ fm_vsp_config(t_fm_vsp_params *p_fm_vsp_params) p_dev = p_fm_vsp_params->h_fm; - _fml_dbg("Performing VSP Configuration...\n"); + _fml_dbg("Performing VSP Configuration..."); memset(¶m, 0, sizeof(ioc_fm_vsp_params_t)); memcpy(¶m, p_fm_vsp_params, sizeof(t_fm_vsp_params)); @@ -69,7 +69,7 @@ fm_vsp_config(t_fm_vsp_params *p_fm_vsp_params) p_dev->owners++; p_vsp_dev->id = PTR_TO_UINT(param.id); - _fml_dbg("VSP Configuration completed\n"); + _fml_dbg("VSP Configuration completed"); return (t_handle)p_vsp_dev; } @@ -81,7 +81,7 @@ fm_vsp_init(t_handle h_fm_vsp) t_device *p_vsp_dev = (t_device *)h_fm_vsp; ioc_fm_obj_t id; - _fml_dbg("Calling...\n"); + _fml_dbg("Calling..."); p_dev = (t_device *)p_vsp_dev->h_user_priv; id.obj = UINT_TO_PTR(p_vsp_dev->id); @@ -91,7 +91,7 @@ fm_vsp_init(t_handle h_fm_vsp) RETURN_ERROR(MINOR, E_INVALID_OPERATION, NO_MSG); } - _fml_dbg("Called.\n"); + _fml_dbg("Called."); return E_OK; } @@ -103,7 +103,7 @@ fm_vsp_free(t_handle h_fm_vsp) t_device *p_vsp_dev = (t_device *)h_fm_vsp; ioc_fm_obj_t id; - _fml_dbg("Calling...\n"); + _fml_dbg("Calling..."); p_dev = (t_device *)p_vsp_dev->h_user_priv; id.obj = UINT_TO_PTR(p_vsp_dev->id); @@ -116,7 +116,7 @@ fm_vsp_free(t_handle h_fm_vsp) p_dev->owners--; free(p_vsp_dev); - _fml_dbg("Called.\n"); + _fml_dbg("Called."); return E_OK; } @@ -129,7 +129,7 @@ fm_vsp_config_buffer_prefix_content(t_handle h_fm_vsp, t_device *p_vsp_dev = (t_device *)h_fm_vsp; ioc_fm_buffer_prefix_content_params_t params; - _fml_dbg("Calling...\n"); + _fml_dbg("Calling..."); p_dev = (t_device *)p_vsp_dev->h_user_priv; params.p_fm_vsp = UINT_TO_PTR(p_vsp_dev->id); @@ -142,7 +142,7 @@ fm_vsp_config_buffer_prefix_content(t_handle h_fm_vsp, RETURN_ERROR(MINOR, E_INVALID_OPERATION, NO_MSG); } - _fml_dbg("Called.\n"); + _fml_dbg("Called."); return E_OK; } -- 2.25.1