Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1197695lqb; Thu, 30 May 2024 03:21:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWMBHModls82If7u3pbiwGnpdEZrIoQbfOWod71h4zWu0UFdRzCZ7svD5bhhp+/+5lTMzDfBRbawIfTf9qidUgdhkAbtoPkKemJ5SMbyw== X-Google-Smtp-Source: AGHT+IEporL1/EJj3vv18YVEwXoEom+Q9jEV9baXaA1o2Kph/XaGa5k1cUOC5Ozhbz8bzp5Tv5r0 X-Received: by 2002:a17:902:e80c:b0:1f2:f8b7:60d4 with SMTP id d9443c01a7336-1f619830b6dmr17777705ad.52.1717064498640; Thu, 30 May 2024 03:21:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717064498; cv=pass; d=google.com; s=arc-20160816; b=yQzWR+rnfToOnxp2I8pF0oQJyKUNgvB5WOAAJATp8EO3kILzNBa8qejc5k9zqf9CUY JTSkbtxeOmRiJVB1oz/d5LVOOu6fNuC+bJI5JweupAxx3QikyajflCX+LcPm9veKJYla f8v79o1czW3GSypSYlmP2n16eXC4tSqu5Xj6/4Xy/9mDpp6CZpmdNDIdDqB7tnKM/YQj gE2jnmCWxF5B/WiDDtPSaBIOLjg7tHxngqR0si78nW/QH3CARZ0USKetHA3NDjyGNXSd CnC0KBCrIJe8R0N240KXppbU7iUhZgFSKxKd8iEh04nX0RLt5Vknb77UP5Y/gkwaWqde BIEQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=ZgcGq+gGLMZzRgJ3mrjkWIPtheOdd4pHy1h0aokwgUM=; fh=8s+g1IdWhNAJF77F4x4rOJS2aaEr74yYlRsagUqJx8U=; b=pBHRohM2V4trqhl4Lvpw39OHhWbEtBR7HoGAuO8KZsVHu5z5nIXNliutxqnvD8E+jD pMIk7ty4U5nZBQa6Ru/7mydhSrvMDjnow+6aSdp/0IJ9AgnJygeYyu+dqXVn9uESUKB6 iB/h63UpryMf1QGnEzAl0iJGbSJ4xM7jp99rIRZ9rEClM+cejGFuJQvxUc5HQZYOfsBa x0EgrMNmJm1kj1cTa5DoLniaaVpY6Tt2OSXi2pSHh5h/P8dKkYI0GsOKo1hnj5sfLAhZ um+W32XEDmPdy8g6OzP9ixTVMgxU7Red53WAmdwvM1sLEjKsdoKOeEb17TMc2/6bBwwD iV/A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=BaYv9gNW; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-195243-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195243-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f44c7c10ffsi117990535ad.174.2024.05.30.03.21.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 03:21:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195243-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=BaYv9gNW; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-195243-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195243-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id A5120B228BC for ; Thu, 30 May 2024 10:21:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 251A317D348; Thu, 30 May 2024 10:20:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="BaYv9gNW" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BF84617C7A1; Thu, 30 May 2024 10:20:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717064451; cv=none; b=F3JH40He9xlCnfKgf/3y42TnfCil8GUy2owaT2u/Cc9xQQI1NxfhPz4IlUAldaqKTJlqiUz37CyXR35pbtnFz8mhdwKWBYGAPdBjmz2CYMKGEAGsgQFHxTGoqRYhqCb/di/w/l7y1spAIe+SSVCDuhNeYKXchTZxvd8TK99lZWA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717064451; c=relaxed/simple; bh=H2jWcvpKqbzAnp9/j0WSN87+yx8nAalCoyjprgqfvk4=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Pfd1iEU0zkJbyM7Muj2SAoHvdl/noUN/a7lWJ0EI8VvTv/PzrQfGDkM1QhEQpDMfvKDCSbfyuLRXarYS5YGY96vVSQvdxQdHDaPN/Sw/1+E1fLpTsIaiDtczWe8IEnk0EM4hXw3vzE3jz9MKbakR3u3M6u1OfeFn7xYYEogc+XI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=BaYv9gNW; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 44U5aOMA015776; Thu, 30 May 2024 10:20:47 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= ZgcGq+gGLMZzRgJ3mrjkWIPtheOdd4pHy1h0aokwgUM=; b=BaYv9gNWdfda6yIY Kd1oV8pAA7imQkBcswUXiyl943Hae/iKtFbMnv5P2vgnhA+/iNlezyMlvZDaZlY/ aPRlGAt9Nni9yRn87gqmNhlEpRJcU4RBvk2cavzFLqY+mJbKRn9LE9tAsNMEv1k6 N2fwf6Hak8J5iZ3C9zyxTsoWxA6uB1EGuY8AR+GuYem9QAfIxSruLgiaXZ/bAo0B sMS7MaJNtfeqKxln2T1RZ6jgEBOKg9xCf+jJgIc5eSnpzWZnzAq57/ggygx2Q4S7 3PBIXeu0dxgiHHjIaEmoA2Zt78Ak4F9/ZHkez0mn9nOpZLMlTAi/Bw21rKqfpSmG +tLdqg== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ydyws3ach-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 30 May 2024 10:20:46 +0000 (GMT) Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 44UAKk9x008411 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 30 May 2024 10:20:46 GMT Received: from hu-ekangupt-hyd.qualcomm.com (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Thu, 30 May 2024 03:20:43 -0700 From: Ekansh Gupta To: , CC: , , , , Dmitry Baryshkov Subject: [PATCH v3 1/9] misc: fastrpc: Add missing dev_err newlines Date: Thu, 30 May 2024 15:50:19 +0530 Message-ID: <20240530102032.27179-2-quic_ekangupt@quicinc.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240530102032.27179-1-quic_ekangupt@quicinc.com> References: <20240530102032.27179-1-quic_ekangupt@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: piKBNdm0SwQXFy2Bk2vYyG3ahpMWNdPg X-Proofpoint-GUID: piKBNdm0SwQXFy2Bk2vYyG3ahpMWNdPg X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.12.28.16 definitions=2024-05-30_07,2024-05-28_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 phishscore=0 malwarescore=0 impostorscore=0 suspectscore=0 mlxscore=0 mlxlogscore=999 priorityscore=1501 spamscore=0 lowpriorityscore=0 bulkscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2405300078 Few dev_err calls are missing newlines. This can result in unrelated lines getting appended which might make logs difficult to understand. Add trailing newlines to avoid this. Reviewed-by: Dmitry Baryshkov Signed-off-by: Ekansh Gupta --- drivers/misc/fastrpc.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/misc/fastrpc.c b/drivers/misc/fastrpc.c index 4c67e2c5a82e..4028cb96bcf2 100644 --- a/drivers/misc/fastrpc.c +++ b/drivers/misc/fastrpc.c @@ -325,7 +325,7 @@ static void fastrpc_free_map(struct kref *ref) err = qcom_scm_assign_mem(map->phys, map->size, &src_perms, &perm, 1); if (err) { - dev_err(map->fl->sctx->dev, "Failed to assign memory phys 0x%llx size 0x%llx err %d", + dev_err(map->fl->sctx->dev, "Failed to assign memory phys 0x%llx size 0x%llx err %d\n", map->phys, map->size, err); return; } @@ -816,7 +816,7 @@ static int fastrpc_map_create(struct fastrpc_user *fl, int fd, map->attr = attr; err = qcom_scm_assign_mem(map->phys, (u64)map->size, &src_perms, dst_perms, 2); if (err) { - dev_err(sess->dev, "Failed to assign memory with phys 0x%llx size 0x%llx err %d", + dev_err(sess->dev, "Failed to assign memory with phys 0x%llx size 0x%llx err %d\n", map->phys, map->size, err); goto map_err; } @@ -1222,7 +1222,7 @@ static bool is_session_rejected(struct fastrpc_user *fl, bool unsigned_pd_reques * that does not support unsigned PD offload */ if (!fl->cctx->unsigned_support || !unsigned_pd_request) { - dev_err(&fl->cctx->rpdev->dev, "Error: Untrusted application trying to offload to signed PD"); + dev_err(&fl->cctx->rpdev->dev, "Error: Untrusted application trying to offload to signed PD\n"); return true; } } @@ -1285,7 +1285,7 @@ static int fastrpc_init_create_static_process(struct fastrpc_user *fl, &src_perms, fl->cctx->vmperms, fl->cctx->vmcount); if (err) { - dev_err(fl->sctx->dev, "Failed to assign memory with phys 0x%llx size 0x%llx err %d", + dev_err(fl->sctx->dev, "Failed to assign memory with phys 0x%llx size 0x%llx err %d\n", fl->cctx->remote_heap->phys, fl->cctx->remote_heap->size, err); goto err_map; } @@ -1337,7 +1337,7 @@ static int fastrpc_init_create_static_process(struct fastrpc_user *fl, (u64)fl->cctx->remote_heap->size, &src_perms, &dst_perms, 1); if (err) - dev_err(fl->sctx->dev, "Failed to assign memory phys 0x%llx size 0x%llx err %d", + dev_err(fl->sctx->dev, "Failed to assign memory phys 0x%llx size 0x%llx err %d\n", fl->cctx->remote_heap->phys, fl->cctx->remote_heap->size, err); } err_map: -- 2.43.0