summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2017-05-22 14:27:40 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-05-26 06:34:30 -0400
commit2e338c77eac4edffb94c8c9480dbd72712c7696f (patch)
tree9d5da6355bc653ef2ba9014ea696ad0391c523a1 /drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c
parent726900b8433294fd89a6d730d2fec9de8e33afda (diff)
gpu: nvgpu: remove duplicate \n from log messages
nvgpu_log/info/warn/err() internally add a \n to the end of the message. Hence, callers should not include a \n at the end of the message. Doing so results in duplicate \n being printed, which ends up creating empty log messages. Remove the duplicate \n from all err/warn messages. Bug 1928311 Change-Id: I99362c5327f36146f28ba63d4e68181589735c39 Signed-off-by: Stephen Warren <swarren@nvidia.com> Reviewed-on: http://git-master/r/1487232 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c b/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c
index 8d95dd35..0f3d762d 100644
--- a/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c
+++ b/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c
@@ -357,7 +357,7 @@ static int nvgpu_gpu_ioctl_set_mmu_debug_mode(
357 struct nvgpu_gpu_mmu_debug_mode_args *args) 357 struct nvgpu_gpu_mmu_debug_mode_args *args)
358{ 358{
359 if (gk20a_busy(g)) { 359 if (gk20a_busy(g)) {
360 nvgpu_err(g, "failed to power on gpu\n"); 360 nvgpu_err(g, "failed to power on gpu");
361 return -EINVAL; 361 return -EINVAL;
362 } 362 }
363 363
@@ -559,7 +559,7 @@ static inline int get_timestamps_zipper(struct gk20a *g,
559 unsigned int i = 0; 559 unsigned int i = 0;
560 560
561 if (gk20a_busy(g)) { 561 if (gk20a_busy(g)) {
562 nvgpu_err(g, "GPU not powered on\n"); 562 nvgpu_err(g, "GPU not powered on");
563 err = -EINVAL; 563 err = -EINVAL;
564 goto end; 564 goto end;
565 } 565 }
@@ -598,7 +598,7 @@ static int nvgpu_gpu_get_cpu_time_correlation_info(
598 get_cpu_timestamp = get_cpu_timestamp_timeofday; 598 get_cpu_timestamp = get_cpu_timestamp_timeofday;
599 break; 599 break;
600 default: 600 default:
601 nvgpu_err(g, "invalid cpu clock source id\n"); 601 nvgpu_err(g, "invalid cpu clock source id");
602 return -EINVAL; 602 return -EINVAL;
603 } 603 }
604 604
@@ -663,7 +663,7 @@ static int nvgpu_gpu_get_engine_info(
663 break; 663 break;
664 664
665 default: 665 default:
666 nvgpu_err(g, "Unmapped engine enum %u\n", 666 nvgpu_err(g, "Unmapped engine enum %u",
667 engine_enum); 667 engine_enum);
668 continue; 668 continue;
669 } 669 }