From patchwork Mon Jun 8 21:04:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Paul X-Patchwork-Id: 11594023 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BDC921392 for ; Mon, 8 Jun 2020 21:05:39 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9A9FB2076A for ; Mon, 8 Jun 2020 21:05:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=poorly.run header.i=@poorly.run header.b="bgc6BHvC" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9A9FB2076A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=poorly.run Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 33C656E59B; Mon, 8 Jun 2020 21:05:39 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-qt1-x844.google.com (mail-qt1-x844.google.com [IPv6:2607:f8b0:4864:20::844]) by gabe.freedesktop.org (Postfix) with ESMTPS id 770D16E59B for ; Mon, 8 Jun 2020 21:05:37 +0000 (UTC) Received: by mail-qt1-x844.google.com with SMTP id w9so15957856qtv.3 for ; Mon, 08 Jun 2020 14:05:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=poorly.run; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=EzthTjcENHrX3tITbBxwAqNbU6Xj4UipKRWTfNqnL+o=; b=bgc6BHvCUoJE1qdmgXsto7Z68feJbJp13cEXK0earcTUj+yjG6mWNGFv4eWC9f5rme gh6CIZHNFRuEC4BkJn1gYZRp9ltYcFiJxWyNqUDe44dZTFWcUtwXrXSWd7RG0VFken1R ahHX3yMVwTYYAr2lMlVbnaAeUvT8WBeTDpdOuBac1dEHikZCklphUDS4Iqz/4hvY3QYh BRrw+IYABTPGnY+s/JN6+qIexxlNPJWD8CC1k6YTRXH+6y9v+h2ytgTcZ1g6+oX1ne9O 0Z06Od9CauPVYFn+m2kA6SyDitLDb6VPpPj+c6/HemAanMCSn2n/EG0T62D6H6cV4qos DQqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=EzthTjcENHrX3tITbBxwAqNbU6Xj4UipKRWTfNqnL+o=; b=nJnIceOqeH9pwAhWxuRn2G4k5JrbLaIEAupigZm6okrZ3Upkem9XgXqawlvAdFIQh2 WjtHi/Fb2WTA4uFuDc16jZBS1oYyJICBBVLupinDcAaij4tv54cWQczNNa7qRG9tzWN5 aJ6yccBS9QvrSoTL60odj9wZ/c3IOapD+tWyBXqvz2T1ZMTileQPZaL0D9AprqoCTD+D Cea367KqMcdyDZJOAXS7jkpuuOeC3rnZTucVKmNjBdm1A3ATL3TBsATr4HSfgEv4Jcm6 a5gJguaPs9QlrbKWGIW7FzPpEPpyQI5EJm4flDRq6bGXOzrMMJlMOtyvI0hwOfftG+aG S9jA== X-Gm-Message-State: AOAM531DhPNZ2Tt2T4HeCXGWPSv6+ee6uvHFrMHojJCgMFEU5MXGlvO2 H4bYKeedkw89qcURvJMUwZy1eQ== X-Google-Smtp-Source: ABdhPJz7OFpjGtNLCnywlgTFICvYLryTMF7ZufFlXArk5WTY8GEQ6QiPri1R0M/FCn4jm9pwFeQ1nw== X-Received: by 2002:aed:30cf:: with SMTP id 73mr7419561qtf.81.1591650335170; Mon, 08 Jun 2020 14:05:35 -0700 (PDT) Received: from localhost (mobile-166-173-249-24.mycingular.net. [166.173.249.24]) by smtp.gmail.com with ESMTPSA id h202sm1934074qke.69.2020.06.08.14.05.34 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 08 Jun 2020 14:05:34 -0700 (PDT) From: Sean Paul To: dri-devel@lists.freedesktop.org Date: Mon, 8 Jun 2020 17:04:53 -0400 Message-Id: <20200608210505.48519-4-sean@poorly.run> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200608210505.48519-1-sean@poorly.run> References: <20200608210505.48519-1-sean@poorly.run> Subject: [Intel-gfx] [PATCH v5 03/13] drm/i915/utils: Replace dev_printk with drm helpers X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , daniel.vetter@ffwll.ch, intel-gfx@lists.freedesktop.org, mripard@kernel.org, ppaalanen@gmail.com, Sean Paul , tzimmermann@suse.de MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" From: Sean Paul Use drm logging helpers to add support for the upcoming tracefs implementation. Signed-off-by: Sean Paul Changes in v5: -Added to the set --- drivers/gpu/drm/i915/i915_utils.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_utils.c b/drivers/gpu/drm/i915/i915_utils.c index f42a9e9a0b4f..99499c0885cf 100644 --- a/drivers/gpu/drm/i915/i915_utils.c +++ b/drivers/gpu/drm/i915/i915_utils.c @@ -30,10 +30,9 @@ __i915_printk(struct drm_i915_private *dev_priv, const char *level, vaf.va = &args; if (is_error) - dev_printk(level, kdev, "%pV", &vaf); + drm_dev_printk(kdev, level, "%pV", &vaf); else - dev_printk(level, kdev, "[" DRM_NAME ":%ps] %pV", - __builtin_return_address(0), &vaf); + drm_err(&dev_priv->drm, "%pV", &vaf); va_end(args);