Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1588017ybb; Sat, 11 Apr 2020 07:06:35 -0700 (PDT) X-Google-Smtp-Source: APiQypL2P9zz9OtPKoIuM69XNp/WRw10Y0p+9sAP4ZWFtZU7OJg875MTSA5c9rZGk7srlzgrc10K X-Received: by 2002:ac8:45cf:: with SMTP id e15mr3758953qto.21.1586613995220; Sat, 11 Apr 2020 07:06:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586613995; cv=none; d=google.com; s=arc-20160816; b=yqdcgF8PDannL7/f5aQOIFsE/scWvsiLz9cMXvesSO49VkHZKgY8HTU5RLGmDNi829 D3dlhT4hqc2XHMFDzjGn4IPiEHBXiLN06e4rTsivrebgW+cYHw0KawCnwyiSufZiYD9P cfj0CVmDsCrd/W8RyBceoZahj3/vuHYG3d/L+Sdk4mwJWZl0pFqMxHDtO52dAkCUIcoE S+PemLhqH6Lobmy+wAZ8gYntdkAXZRMdLqsZcOSAMtV0zYkX0YUhcPv+7BcE1/krNBsE p0bfooS1CMMAPRISDltD0t4raZEkAdwjJbts1kj4KfQ3rINsbZ0QvH+kIjl+sWj1h9aX QtjA== 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; bh=OLXabzaN9747FU8uQSjIyYQ9Z0DrFoQ+HeAwAVU7rDE=; b=axIg3FwFBKJ8R1l01ZL3wblRRK5pb+Ww+SdR/jSF/jn+AcLCdU9QEKO92QnC6AWzxB SL8BOyYRWgZc9baRosDpo86t675TYQOECqakaTvGsW9Aquk41D4kClKDUt/nPD7REQae A3+Kxqcw7mZrytXA+EGFhRVh6/nn8JsHvxnAX+s0RGbQplRdiMy9pU1FpKYz1kWxgwRb MBWvaNuskOHneYs02fsRCaVPRt/XQxN/jJExcpppaFxYAO+R3/i53rU6Wf1iCdTv0oqp A3PwMYJlcbg9XEYHFRnZt1JYMZ/DJxig8Aj1smZm/1bIBuWGyHrxl628amvpLy6MQZJ1 Sdxg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w20si2397591qtb.350.2020.04.11.07.06.18; Sat, 11 Apr 2020 07:06:35 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726182AbgDKOEC (ORCPT + 99 others); Sat, 11 Apr 2020 10:04:02 -0400 Received: from smtp06.smtpout.orange.fr ([80.12.242.128]:35886 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726094AbgDKOEC (ORCPT ); Sat, 11 Apr 2020 10:04:02 -0400 Received: from localhost.localdomain ([90.126.162.40]) by mwinf5d41 with ME id RS3y2200H0scBcy03S3yw4; Sat, 11 Apr 2020 16:04:00 +0200 X-ME-Helo: localhost.localdomain X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sat, 11 Apr 2020 16:04:00 +0200 X-ME-IP: 90.126.162.40 From: Christophe JAILLET To: alexander.deucher@amd.com, christian.koenig@amd.com, David1.Zhou@amd.com, airlied@linux.ie, daniel@ffwll.ch, Hawking.Zhang@amd.com, evan.quan@amd.com, andrey.grodzovsky@amd.com, Monk.Liu@amd.com, kent.russell@amd.com, le.ma@amd.com Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET Subject: [PATCH] drm/amdgpu: Add missing '\n' in log messages Date: Sat, 11 Apr 2020 16:03:56 +0200 Message-Id: <20200411140356.28211-1-christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.20.1 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 Message logged by 'dev_xxx()' or 'pr_xxx()' should end with a '\n'. While at it, split some long lines that where not that far. Signed-off-by: Christophe JAILLET --- Most of them have been added in commit bd607166af7f ("drm/amdgpu: Enable reading FRU chip via I2C v3") --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 87f7c129c8ce..3d0a50e8c36b 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -3249,25 +3249,25 @@ int amdgpu_device_init(struct amdgpu_device *adev, r = device_create_file(adev->dev, &dev_attr_pcie_replay_count); if (r) { - dev_err(adev->dev, "Could not create pcie_replay_count"); + dev_err(adev->dev, "Could not create pcie_replay_count\n"); return r; } r = device_create_file(adev->dev, &dev_attr_product_name); if (r) { - dev_err(adev->dev, "Could not create product_name"); + dev_err(adev->dev, "Could not create product_name\n"); return r; } r = device_create_file(adev->dev, &dev_attr_product_number); if (r) { - dev_err(adev->dev, "Could not create product_number"); + dev_err(adev->dev, "Could not create product_number\n"); return r; } r = device_create_file(adev->dev, &dev_attr_serial_number); if (r) { - dev_err(adev->dev, "Could not create serial_number"); + dev_err(adev->dev, "Could not create serial_number\n"); return r; } @@ -4270,7 +4270,7 @@ int amdgpu_device_gpu_recover(struct amdgpu_device *adev, job_signaled = true; if (job_signaled) { - dev_info(adev->dev, "Guilty job already signaled, skipping HW reset"); + dev_info(adev->dev, "Guilty job already signaled, skipping HW reset\n"); goto skip_hw_reset; } @@ -4339,10 +4339,12 @@ int amdgpu_device_gpu_recover(struct amdgpu_device *adev, if (r) { /* bad news, how to tell it to userspace ? */ - dev_info(tmp_adev->dev, "GPU reset(%d) failed\n", atomic_read(&tmp_adev->gpu_reset_counter)); + dev_info(tmp_adev->dev, "GPU reset(%d) failed\n", + atomic_read(&tmp_adev->gpu_reset_counter)); amdgpu_vf_error_put(tmp_adev, AMDGIM_ERROR_VF_GPU_RESET_FAIL, 0, r); } else { - dev_info(tmp_adev->dev, "GPU reset(%d) succeeded!\n", atomic_read(&tmp_adev->gpu_reset_counter)); + dev_info(tmp_adev->dev, "GPU reset(%d) succeeded!\n", + atomic_read(&tmp_adev->gpu_reset_counter)); } } -- 2.20.1