summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/mm_gk20a.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/gk20a/mm_gk20a.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/gk20a/mm_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/mm_gk20a.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
index 183a540a..72f9eeab 100644
--- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
@@ -1171,7 +1171,7 @@ fail_validate:
1171 if (allocated) 1171 if (allocated)
1172 __nvgpu_vm_free_va(vm, map_offset, pgsz_idx); 1172 __nvgpu_vm_free_va(vm, map_offset, pgsz_idx);
1173fail_alloc: 1173fail_alloc:
1174 nvgpu_err(g, "%s: failed with err=%d\n", __func__, err); 1174 nvgpu_err(g, "%s: failed with err=%d", __func__, err);
1175 return 0; 1175 return 0;
1176} 1176}
1177 1177
@@ -2670,7 +2670,7 @@ int gk20a_alloc_inst_block(struct gk20a *g, struct nvgpu_mem *inst_block)
2670 2670
2671 err = nvgpu_dma_alloc(g, ram_in_alloc_size_v(), inst_block); 2671 err = nvgpu_dma_alloc(g, ram_in_alloc_size_v(), inst_block);
2672 if (err) { 2672 if (err) {
2673 nvgpu_err(g, "%s: memory allocation failed\n", __func__); 2673 nvgpu_err(g, "%s: memory allocation failed", __func__);
2674 return err; 2674 return err;
2675 } 2675 }
2676 2676