Received: by 10.223.176.5 with SMTP id f5csp1137218wra; Wed, 7 Feb 2018 13:23:01 -0800 (PST) X-Google-Smtp-Source: AH8x225tLkFERaV/BKd65nyvVzMQYUYJ8rf/6aGXX2Xtmg3+tNiHzTNUedpoRToYOUtjdD6D6V2a X-Received: by 2002:a17:902:9003:: with SMTP id a3-v6mr426246plp.338.1518038581361; Wed, 07 Feb 2018 13:23:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518038581; cv=none; d=google.com; s=arc-20160816; b=q6soOaYIdmA6qTef5r81Nk3DKDciqY1PiQ1G29Xl5wAQNLEijVGx6Y/WVpV1U7ecR0 QMnm8zsTPsMb2qAEQJDS+FG7lnioSeGtSgY37/Peim6QDyLAePnZD7TMWTu/nCI7t5/M X5GDnlth4eCsdHoeGJ3ghEgHadwAu172nYURuucs8gh7WgfO/EsVf4EiM6CtfMfscJi5 aC/ANlIBxC4e+LHL4hCi7QEG/rdvTu0euoqkoeWXRX9APWiG8cMJtOJRzMNCJDMxQJxb WD+Ne/K+meo6Op0KeBi3mSfRlaeHY4GCZW9+MoQB5GoR41sYED3xSzwNaetxgJqjGR8O vi3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=TToakcLgaa3NNnGtthL/LzWpo04RiqQee4n+hLUwLI0=; b=ZEuX1y3q1JfsUEZ24050DOJ78SRz9oEVcCN6BviAHs3p+QfCCaKdec6a7nfggxHLZS IJYIYcjYlAfiVFWpDEMOGKULA1iUHNlLg5NIGsQavEKbg3kvCzfzCbGA7+uq28g6wkjF 5c734xkQ2r9hdoXCGt7OQQNiJWybJLYFXXd76aOwssex/LfKrE0QFm458wBIEAK16HRW muC8/jUzxu5iIUKNtsKYu30g25mX2MaR206kHjBoNnxzAO0iG/By1yYLzql3hJpUE2H2 VeUnQN8jRfciUyezQZTKvBFzrrURth6nPIKY3U/HRJu1/abR4czTRsHP4R/jj61q1bBY iAqg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r1si1412760pgp.603.2018.02.07.13.22.47; Wed, 07 Feb 2018 13:23:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932360AbeBGVVy (ORCPT + 99 others); Wed, 7 Feb 2018 16:21:54 -0500 Received: from osg.samsung.com ([64.30.133.232]:38688 "EHLO osg.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932315AbeBGVVF (ORCPT ); Wed, 7 Feb 2018 16:21:05 -0500 Received: from localhost (localhost [127.0.0.1]) by osg.samsung.com (Postfix) with ESMTP id 42C2C1B2CD; Wed, 7 Feb 2018 13:21:05 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at dev.s-opensource.com X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from osg.samsung.com ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oSwzYVM4kBqT; Wed, 7 Feb 2018 13:21:04 -0800 (PST) Received: from localhost.localdomain (c-24-9-64-241.hsd1.co.comcast.net [24.9.64.241]) by osg.samsung.com (Postfix) with ESMTPSA id 678151B2A8; Wed, 7 Feb 2018 13:21:02 -0800 (PST) From: Shuah Khan To: valentina.manea.m@gmail.com, shuah@kernel.org, gregkh@linuxfoundation.org Cc: Shuah Khan , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: [PATCH 3.18 8/9] usbip: stub: stop printing kernel pointer addresses in messages Date: Wed, 7 Feb 2018 14:20:31 -0700 Message-Id: <74bef3a186e17a578c3317781a9bd348bd78c905.1518036867.git.shuahkh@osg.samsung.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Upstream commit 248a22044366 ("usbip: stub: stop printing kernel pointer addresses in messages") Remove and/or change debug, info. and error messages to not print kernel pointer addresses. Signed-off-by: Shuah Khan Cc: stable Signed-off-by: Greg Kroah-Hartman --- drivers/usb/usbip/stub_main.c | 5 +++-- drivers/usb/usbip/stub_rx.c | 7 ++----- drivers/usb/usbip/stub_tx.c | 4 ++-- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/drivers/usb/usbip/stub_main.c b/drivers/usb/usbip/stub_main.c index af10f7b131a4..325b4c05acdd 100644 --- a/drivers/usb/usbip/stub_main.c +++ b/drivers/usb/usbip/stub_main.c @@ -252,11 +252,12 @@ void stub_device_cleanup_urbs(struct stub_device *sdev) struct stub_priv *priv; struct urb *urb; - dev_dbg(&sdev->udev->dev, "free sdev %p\n", sdev); + dev_dbg(&sdev->udev->dev, "Stub device cleaning up urbs\n"); while ((priv = stub_priv_pop(sdev))) { urb = priv->urb; - dev_dbg(&sdev->udev->dev, "free urb %p\n", urb); + dev_dbg(&sdev->udev->dev, "free urb seqnum %lu\n", + priv->seqnum); usb_kill_urb(urb); kmem_cache_free(stub_priv_cache, priv); diff --git a/drivers/usb/usbip/stub_rx.c b/drivers/usb/usbip/stub_rx.c index f5533c99cd48..56cacb68040c 100644 --- a/drivers/usb/usbip/stub_rx.c +++ b/drivers/usb/usbip/stub_rx.c @@ -230,9 +230,6 @@ static int stub_recv_cmd_unlink(struct stub_device *sdev, if (priv->seqnum != pdu->u.cmd_unlink.seqnum) continue; - dev_info(&priv->urb->dev->dev, "unlink urb %p\n", - priv->urb); - /* * This matched urb is not completed yet (i.e., be in * flight in usb hcd hardware/driver). Now we are @@ -271,8 +268,8 @@ static int stub_recv_cmd_unlink(struct stub_device *sdev, ret = usb_unlink_urb(priv->urb); if (ret != -EINPROGRESS) dev_err(&priv->urb->dev->dev, - "failed to unlink a urb %p, ret %d\n", - priv->urb, ret); + "failed to unlink a urb # %lu, ret %d\n", + priv->seqnum, ret); return 0; } diff --git a/drivers/usb/usbip/stub_tx.c b/drivers/usb/usbip/stub_tx.c index af858d52608a..f4dd30c56f36 100644 --- a/drivers/usb/usbip/stub_tx.c +++ b/drivers/usb/usbip/stub_tx.c @@ -201,8 +201,8 @@ static int stub_send_ret_submit(struct stub_device *sdev) /* 1. setup usbip_header */ setup_ret_submit_pdu(&pdu_header, urb); - usbip_dbg_stub_tx("setup txdata seqnum: %d urb: %p\n", - pdu_header.base.seqnum, urb); + usbip_dbg_stub_tx("setup txdata seqnum: %d\n", + pdu_header.base.seqnum); usbip_header_correct_endian(&pdu_header, 1); iov[iovnum].iov_base = &pdu_header; -- 2.14.1