Received: by 2002:a4a:311b:0:0:0:0:0 with SMTP id k27-v6csp3699471ooa; Mon, 13 Aug 2018 16:42:19 -0700 (PDT) X-Google-Smtp-Source: AA+uWPy0qUcsAIVlVIH0xja1zfSikutJa4ZlHqjmJygmLjAqNEFsrmTD4RbyKEGMSWHF8WKXEgMz X-Received: by 2002:a17:902:4d45:: with SMTP id o5-v6mr18009707plh.78.1534203739833; Mon, 13 Aug 2018 16:42:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534203739; cv=none; d=google.com; s=arc-20160816; b=a/D2GrpJkhLK27df9jCfNz9+25rQmKZzmSCjMoR3MKP8vFIWmYaR4vA81Z1aSp6Sdr afNEIVjJY0huXni8gQkH5IXxyLaHdfaJl/oepDk15DDuCGlv38JcPYMPBnjZr55z5swx kA4OW0QbCbd9lnXrRPKbopQGAIFAhv1jSFYfl2xDaW0yloGMv78FVDiy1r8GhObrPrCR li4nd9jgT/mXTDN+mxTxHLdDTf5kr7PF9awcGAC1Dmz5lKOg/KYjGM7bseRNRlXjSNXG Dpez/KIQdfxx3lKvK3JoZx7c+2aif4q/gTSzVZJMhmH/5JelqnJi99js6bXS4Wg5uexe Nuog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:references :mime-version:message-id:in-reply-to:date:dkim-signature :arc-authentication-results; bh=qphkOWujziwL0wBgfe6QsGywOKK66zCgD2St8Z53K1Q=; b=0SBeysoAu91FS8fAaTCe8oY041x3dQluSXNMoN8NNwc6j6f5pKWu6vnWLkBfzZK6hd 691ixh0kMmun2KAEdU0b6hwaRkR2NtOtAKumEicmAL2gfCXPgHXPT5WFzo64hM1kC+q/ OfSgSYTb8w4EIkpl+JMGE241tWY5SvgQfgpJGwaKP9WPlzEqzIgw1MCZNXut8bRV4fNv FARmeu7Vi6qh1Dm5Pgm+UmYLkpdfURqJYvetgqQhsmXXJvmwEoDnipJFixMW7dyPGMvA k0+bMY+QWrWeSR39RwfP/y4ZaYs1YrltsMJuTCSJJi2PUPvD/R9RAUdRuasGJ9+BvO+V gJEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=KR9XOziK; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 184-v6si19723513pfe.249.2018.08.13.16.42.04; Mon, 13 Aug 2018 16:42:19 -0700 (PDT) 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; dkim=pass header.i=@google.com header.s=20161025 header.b=KR9XOziK; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732589AbeHNCYM (ORCPT + 99 others); Mon, 13 Aug 2018 22:24:12 -0400 Received: from mail-oi0-f74.google.com ([209.85.218.74]:36984 "EHLO mail-oi0-f74.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729947AbeHNCYL (ORCPT ); Mon, 13 Aug 2018 22:24:11 -0400 Received: by mail-oi0-f74.google.com with SMTP id b8-v6so18570375oib.4 for ; Mon, 13 Aug 2018 16:39:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=qphkOWujziwL0wBgfe6QsGywOKK66zCgD2St8Z53K1Q=; b=KR9XOziKdVih1FA6mKyUzXX1Pm7mYuvIMCowafFuKrrqsXLdkF9JKKW+ogs+QFgDVp o/nO38mEN7JEOT/38rgtjkFoon6Qml9ELSClOb7J4PNc0QVbyDsSiR53mBlBS1HllcfD H4e7JpLyF/uWlXvCfjL4Ixle4Kn7vqa3iEviuPTDcb2GiOPqH1qw3+vGiR9OXrI6dr9A kEJnfu8rI8HZmcbRkgRAAdAqCHwa6a0VO8TSctxf8V91ZYmuS2YTpM/SRu5xNidtSyzA MEEAEV49HWLNVRM3Siha8bf5pNg4ZaO7jRn2eBsvajl6OV/PXONnBQdu7oOi8lgKsX5J jK4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=qphkOWujziwL0wBgfe6QsGywOKK66zCgD2St8Z53K1Q=; b=hx3TZtDT9Zz1MWgOip6pMJe081O55Qn/IfWcPjF205KT7b/LA/Sl8SzX1p9o5Zl6yi Oj427u3RuAp4L880JXa0zpt/SMACkpWt1ms3PZm/owmvDq/N/aIMeryGNB13Eu4756Kw J1ceaywF48mXpXmlFTE/oinf4dsKzfRH1n9JxmclPut18gQoAO448K9ipXryqw/d957y ZpXnW+uOiB903B5jH7TcTbB4c3MpEqHOnEuR07aUa80VTKcNXIk8aq37dFbK+/PQ/I0X v++f/h5/qU/BHWIuBPeYw2ikL+yBUT5ikdJwx5JFT39/BSyKjxR34oTVIU8BmuC3g1Vc jo5Q== X-Gm-Message-State: AOUpUlETP0cnrEhZzuWtepK1L2rLBA+uZUAf5iu6Z3wVXM9pfi0tl33C HdX39oXf8SqGi3HSeSGod+PKEJao X-Received: by 2002:aca:1e11:: with SMTP id m17-v6mr12730122oic.107.1534203583030; Mon, 13 Aug 2018 16:39:43 -0700 (PDT) Date: Mon, 13 Aug 2018 16:38:39 -0700 In-Reply-To: <20180813233839.190855-1-rkir@google.com> Message-Id: <20180813233839.190855-8-rkir@google.com> Mime-Version: 1.0 References: <20180813233839.190855-1-rkir@google.com> X-Mailer: git-send-email 2.18.0.865.gffc8e1a3cd6-goog Subject: [PATCH 8/9] platform: goldfish: pipe: Replace pr_ with dev_ for logging From: rkir@google.com To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, tkjos@google.com, Roman Kiryanov Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Roman Kiryanov dev_ is preferred if struct device is available. Signed-off-by: Roman Kiryanov --- drivers/platform/goldfish/goldfish_pipe.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/platform/goldfish/goldfish_pipe.c b/drivers/platform/goldfish/goldfish_pipe.c index 6f3fc4b30fba..3f8e440d62ae 100644 --- a/drivers/platform/goldfish/goldfish_pipe.c +++ b/drivers/platform/goldfish/goldfish_pipe.c @@ -384,6 +384,7 @@ static ssize_t goldfish_pipe_read_write(struct file *filp, int count = 0, ret = -EINVAL; unsigned long address, address_end, last_page; unsigned int last_page_size; + struct device *pdev_dev; /* If the emulator already closed the pipe, no need to go further */ if (unlikely(test_bit(BIT_CLOSED_ON_HOST, &pipe->flags))) @@ -401,6 +402,8 @@ static ssize_t goldfish_pipe_read_write(struct file *filp, last_page = (address_end - 1) & PAGE_MASK; last_page_size = ((address_end - 1) & ~PAGE_MASK) + 1; + pdev_dev = pipe->dev->pdev_dev; + while (address < address_end) { s32 consumed_size; int status; @@ -433,7 +436,8 @@ static ssize_t goldfish_pipe_read_write(struct file *filp, * err. */ if (status != PIPE_ERROR_AGAIN) - pr_info_ratelimited("goldfish_pipe: backend error %d on %s\n", + dev_err_ratelimited(pdev_dev, + "goldfish_pipe: backend error %d on %s\n", status, is_write ? "write" : "read"); break; } -- 2.18.0.865.gffc8e1a3cd6-goog