Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp629752ybb; Wed, 8 Apr 2020 06:54:16 -0700 (PDT) X-Google-Smtp-Source: APiQypKfbgXY42K+T9dRVU9UFdXOb2wOtQs3fCIRqUHlz899htxRh4+WLe7EwpYB618NQUWDNGi3 X-Received: by 2002:a9d:f05:: with SMTP id 5mr5552912ott.263.1586354056435; Wed, 08 Apr 2020 06:54:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586354056; cv=none; d=google.com; s=arc-20160816; b=FIUB4YZQqqxrPI7crhgdTjaEDtXCP9l6KPIOnjREk5HNZTzzwS8JELgLsIO71n8rNJ BmseW0WzNwEoQ4hlEPZuvxSdP6A3AkQjtht3HEQDPZSg70FDt888At8LUurzPYAk+82y O8RvSOz6jaMVtOaGsQECavtIio90rCgufDeBLTG8xpexmfcZEuJvn2gBPCIn13reAXrD Y+RPVpxhm/vDBcGf8PoQrweV0xEMdw9KVKIj5SURCZ34Ck5BcrJ0rtliBvTrMkMh7xvR FZ1G5zStDyis5UZ2vYo2yzCJAaPq43ylrTfRK9r+Mm0F8bFKJHgM/prrDaXWSIwYkMvo KXrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=a8mBf/x6tKmxXEyAN6VSKYHc9JSU+mIaA50Z6TnFau4=; b=SC/P8HkBC+c8SWdQtVnZr8zWmNzj9XLaUUWTTnbIeDe5mf/tTVEPY2HfStf1Bo98tV /cP/ofaHVMxp16VQpIgnNXRSZSB465y/prtLqis7v5tc4dmTEufLiHS6AwP8soIoGHCu N4E1goW7KTCWfnDpBLJM4/WpzigBLtsJplDIBchL0Zpi3bPa+BVjMfozU20SDeHAcjms DZcmA6OAl/luIjjUmpMGJPp714CsgW5BLdJAFZjOPRkT7v0E6XhLqM6TaBS8uM9hZR/g lDAXHIXJyTcYJuT84+bcdErgEgqqc/N+Zf2JWQnX2ZWU0Y89RU36QzH/2o/Whbu7B+1A /SDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aurabindo.in header.s=google header.b=oNGBRMTT; 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=NONE sp=NONE dis=NONE) header.from=aurabindo.in Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 38si2570725otm.189.2020.04.08.06.54.00; Wed, 08 Apr 2020 06:54:16 -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=@aurabindo.in header.s=google header.b=oNGBRMTT; 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=NONE sp=NONE dis=NONE) header.from=aurabindo.in Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728692AbgDHNhl (ORCPT + 99 others); Wed, 8 Apr 2020 09:37:41 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:35399 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726760AbgDHNhl (ORCPT ); Wed, 8 Apr 2020 09:37:41 -0400 Received: by mail-qk1-f196.google.com with SMTP id c63so79994qke.2 for ; Wed, 08 Apr 2020 06:37:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aurabindo.in; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=a8mBf/x6tKmxXEyAN6VSKYHc9JSU+mIaA50Z6TnFau4=; b=oNGBRMTTT4G0ujvkoAxRMd3XDpqMEs3ISjiGTl3+WMr3y0jNbTYWFZVr6oSkfSctjo 820mOtbknzXiP1a+VHzTLSrRoFPDtBkZyrvm3Y3KHV/5L1o66DFPQqYtjEqM7Q2tmeN2 bZYbGMP/wDNJ20bM9UVlVtK9xYk0ZDHBaRHDUwPMUyRhgJFh220KAzu6Ob9GFKhlQauB xWQdo4bNV/1iV8qJjw+cDLSSoaWUxzOP+3oFmut9SJFXCDdi73L1QXjveEoi4S959mUF MlfOIVkuGAoI/PZErdQEivO3GhuWEOt1ALkBlCc746rf7CeiGoO3crXm+N6ddXc4vbo8 YTZQ== 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:mime-version :content-transfer-encoding; bh=a8mBf/x6tKmxXEyAN6VSKYHc9JSU+mIaA50Z6TnFau4=; b=OvO0Ux3v+BlU2FNT+1qCdKzHKU8ipeDyNNb1bO17/QxfCiZjnMo5nJQ58kAtHsPSeK QXFTPGMdHIp0X25YJpQchGymkSI4tib8rVtLAgm7lNNcaQYHSz0YP6iOezJ4L0n3hGb/ 9+ozD+7SndbGd9HCX/mz1ukT5prEAHicrIvNQgoN0h8XBrETEHj67OKrzvzpNybI98pP lKQyS/3m7AlBdgpSWM9NJ1p/vLovc6me4b5i8A9m0LTrAX2DVpJeNKERjlgF4Uk45a4f h59J0COtj7immvd74Ein7EkJfQ0HuGa2Cs75Hi4AoNwrNNyM1qo+dbOhHy2M7+jQw+Bx GGSA== X-Gm-Message-State: AGi0PuaesdlJabAsKehQTXcyWCMNcjBuyqmmNIjTtNlwcKDUdHM0EbNA Xhnl7IBPvJ9UAwLbg+f1Mgf8bg== X-Received: by 2002:a37:9e17:: with SMTP id h23mr7319606qke.315.1586353060016; Wed, 08 Apr 2020 06:37:40 -0700 (PDT) Received: from localhost.localdomain (135-23-249-169.cpe.pppoe.ca. [135.23.249.169]) by smtp.gmail.com with ESMTPSA id q5sm8493827qkn.59.2020.04.08.06.37.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Apr 2020 06:37:38 -0700 (PDT) From: Aurabindo Pillai To: alexander.deucher@amd.com, christian.koenig@amd.com Cc: avid1.Zhou@amd.com, airlied@linux.ie, daniel@ffwll.ch, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/amd/amdgpu: add prefix for pr_* prints Date: Wed, 8 Apr 2020 09:37:35 -0400 Message-Id: <20200408133735.7679-1-mail@aurabindo.in> X-Mailer: git-send-email 2.26.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org amdgpu uses lots of pr_* calls for printing error messages. With this prefix, errors shall be more obvious to the end use regarding its origin, and may help debugging. Prefix format: [xxx.xxxxx] amdgpu: ... Signed-off-by: Aurabindo Pillai --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index da3bcff61..67d654a89 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h @@ -28,6 +28,12 @@ #ifndef __AMDGPU_H__ #define __AMDGPU_H__ +#ifdef pr_fmt +#undef pr_fmt +#endif + +#define pr_fmt(fmt) "amdgpu: " fmt + #include "amdgpu_ctx.h" #include -- 2.26.0